Conversation
Summary of ChangesHello @chenjiahan, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request significantly refactors the dependency handling for Highlights
Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request pre-bundles jiti to minimize dependencies for @rsbuild/core. The changes involve moving jiti to devDependencies, adding a build step to copy it to the compiled directory, and updating build configurations to use this pre-bundled version. The implementation is sound, but I have one suggestion to make the module resolution for jiti more robust.
There was a problem hiding this comment.
Pull request overview
This PR updates @rsbuild/core’s build/prebundle pipeline to ship jiti inside the package (under compiled/) instead of keeping it as a runtime dependency, while preserving rsbuild.config.ts loading support on Node 20.
Changes:
- Move
jitifromdependenciestodevDependenciesfor@rsbuild/core, relying on a shipped compiled copy instead. - Add a build “prepare” step to copy
node_modules/jitiintopackages/core/compiled/jitiand ensure build ordering. - Update prebundle externals to resolve
jitivia the compiled copy.
Reviewed changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| pnpm-lock.yaml | Reflects dependency move of jiti and updated lock metadata. |
| packages/core/rslib.config.ts | Copies jiti into compiled/ during build and rewrites externals to load it from there. |
| packages/core/prebundle.config.ts | Adjusts postcss-loader external mapping for jiti to point at the compiled copy. |
| packages/core/package.json | Removes jiti from runtime deps and adds it to dev deps (packaging still includes compiled/). |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f01f266ac5
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Summary
Prebundle
jitito minimize the number of dependencies for@rsbuild/core.We still need jiti to support
rsbuild.config.tson Node 20, but jiti should be removed in Rsbuild 3.0.Checklist