Skip to content

Comments

fix(create-rsbuild): update @rsbuild/core dependency to v2.0.0-0#6978

Merged
chenjiahan merged 1 commit intomainfrom
create_rsbuild_0115
Jan 15, 2026
Merged

fix(create-rsbuild): update @rsbuild/core dependency to v2.0.0-0#6978
chenjiahan merged 1 commit intomainfrom
create_rsbuild_0115

Conversation

@chenjiahan
Copy link
Member

Summary

Updates the @rsbuild/core version from ^1.7.2 to^2.0.0-0 across all templates in the create-rsbuild.

Related Links

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copilot AI review requested due to automatic review settings January 15, 2026 02:46
@netlify
Copy link

netlify bot commented Jan 15, 2026

Deploy Preview for rsbuild-v2 ready!

Name Link
🔨 Latest commit 491c32f
🔍 Latest deploy log https://app.netlify.com/projects/rsbuild-v2/deploys/696854ec8ac24400086853f1
😎 Deploy Preview https://deploy-preview-6978--rsbuild-v2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @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 focuses on synchronizing the create-rsbuild project templates with the latest major version of the @rsbuild/core library. By updating the core dependency across all templates, new projects generated will automatically leverage the most recent features, improvements, and breaking changes introduced in v2.0.0-0, ensuring users start with an up-to-date and consistent development environment.

Highlights

  • Dependency Update: The @rsbuild/core dependency has been updated from version ^1.7.2 to ^2.0.0-0.
  • Template-wide Application: This dependency update has been applied consistently across all project templates within the create-rsbuild package.
Using Gemini Code Assist

The 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 /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

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 .gemini/ folder in the base of the repository. Detailed instructions can be found here.

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

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request correctly updates the @rsbuild/core dependency to ^2.0.0-0 across all project templates. The changes are consistent and reflect the intention to adopt the new major version.

While the main dependency is updated, I've noticed that the associated @rsbuild plugins in the templates are not using their latest patch versions. To ensure consistency and include the latest fixes, it would be beneficial to update them as well.

Here are the suggested updates for the plugin versions in the devDependencies of the respective package.json files:

  • @rsbuild/plugin-preact: ^1.7.0 -> ^1.7.1 (in template-preact-js and template-preact-ts)
  • @rsbuild/plugin-react: ^1.4.2 -> ^1.4.3 (in template-react-js, template-react-ts, template-react18-js, template-react18-ts)
  • @rsbuild/plugin-babel: ^1.0.6 -> ^1.0.7 (in template-solid-js and template-solid-ts)
  • @rsbuild/plugin-solid: ^1.0.6 -> ^1.0.7 (in template-solid-js and template-solid-ts)
  • @rsbuild/plugin-svelte: ^1.0.11 -> ^1.0.12 (in template-svelte-js and template-svelte-ts)
  • @rsbuild/plugin-vue: ^1.2.2 -> ^1.2.3 (in template-vue3-js and template-vue3-ts)

Additionally, please check if @rsbuild/plugin-vue2 in the Vue 2 templates has a newer patch version and update it accordingly.

Aligning these versions would improve the overall quality and maintainability of the templates.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the @rsbuild/core dependency from ^1.7.2 to ^2.0.0-0 across all project templates in the create-rsbuild package. This represents a major version upgrade to a pre-release version (alpha) of Rsbuild v2.

Changes:

  • Updated @rsbuild/core dependency to ^2.0.0-0 across all 18 template variants
  • The update spans templates for 9 different frameworks (React 18, React 19, Vue 2, Vue 3, Solid, Svelte, Preact, Lit, and Vanilla)

Reviewed changes

Copilot reviewed 18 out of 18 changed files in this pull request and generated 14 comments.

Show a summary per file
File Description
packages/create-rsbuild/template-vue3-ts/package.json Updated @rsbuild/core to v2.0.0-0 for Vue 3 TypeScript template
packages/create-rsbuild/template-vue3-js/package.json Updated @rsbuild/core to v2.0.0-0 for Vue 3 JavaScript template
packages/create-rsbuild/template-vue2-ts/package.json Updated @rsbuild/core to v2.0.0-0 for Vue 2 TypeScript template
packages/create-rsbuild/template-vue2-js/package.json Updated @rsbuild/core to v2.0.0-0 for Vue 2 JavaScript template
packages/create-rsbuild/template-vanilla-ts/package.json Updated @rsbuild/core to v2.0.0-0 for Vanilla TypeScript template
packages/create-rsbuild/template-vanilla-js/package.json Updated @rsbuild/core to v2.0.0-0 for Vanilla JavaScript template
packages/create-rsbuild/template-svelte-ts/package.json Updated @rsbuild/core to v2.0.0-0 for Svelte TypeScript template
packages/create-rsbuild/template-svelte-js/package.json Updated @rsbuild/core to v2.0.0-0 for Svelte JavaScript template
packages/create-rsbuild/template-solid-ts/package.json Updated @rsbuild/core to v2.0.0-0 for Solid TypeScript template
packages/create-rsbuild/template-solid-js/package.json Updated @rsbuild/core to v2.0.0-0 for Solid JavaScript template
packages/create-rsbuild/template-react18-ts/package.json Updated @rsbuild/core to v2.0.0-0 for React 18 TypeScript template
packages/create-rsbuild/template-react18-js/package.json Updated @rsbuild/core to v2.0.0-0 for React 18 JavaScript template
packages/create-rsbuild/template-react-ts/package.json Updated @rsbuild/core to v2.0.0-0 for React (19) TypeScript template
packages/create-rsbuild/template-react-js/package.json Updated @rsbuild/core to v2.0.0-0 for React (19) JavaScript template
packages/create-rsbuild/template-preact-ts/package.json Updated @rsbuild/core to v2.0.0-0 for Preact TypeScript template
packages/create-rsbuild/template-preact-js/package.json Updated @rsbuild/core to v2.0.0-0 for Preact JavaScript template
packages/create-rsbuild/template-lit-ts/package.json Updated @rsbuild/core to v2.0.0-0 for Lit TypeScript template
packages/create-rsbuild/template-lit-js/package.json Updated @rsbuild/core to v2.0.0-0 for Lit JavaScript template

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

"devDependencies": {
"@rsbuild/core": "^1.7.2",
"@rsbuild/core": "^2.0.0-0",
"@rsbuild/plugin-vue": "^1.2.2",
Copy link

Copilot AI Jan 15, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The @rsbuild/core dependency is being updated to v2.0.0-0 (a major version pre-release), but @rsbuild/plugin-vue remains at v1.2.2. A major version bump in the core package typically includes breaking changes that may require corresponding updates to plugins. Please verify that @rsbuild/plugin-vue v1.2.2 is compatible with @rsbuild/core v2.0.0-0, or update the plugin version accordingly.

Suggested change
"@rsbuild/plugin-vue": "^1.2.2",
"@rsbuild/plugin-vue": "^2.0.0-0",

Copilot uses AI. Check for mistakes.
"devDependencies": {
"@rsbuild/core": "^1.7.2",
"@rsbuild/core": "^2.0.0-0",
"@rsbuild/plugin-svelte": "^1.0.11",
Copy link

Copilot AI Jan 15, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The @rsbuild/core dependency is being updated to v2.0.0-0 (a major version pre-release), but @rsbuild/plugin-svelte remains at v1.0.11. A major version bump in the core package typically includes breaking changes that may require corresponding updates to plugins. Please verify that @rsbuild/plugin-svelte v1.0.11 is compatible with @rsbuild/core v2.0.0-0, or update the plugin version accordingly.

Suggested change
"@rsbuild/plugin-svelte": "^1.0.11",
"@rsbuild/plugin-svelte": "^2.0.0-0",

Copilot uses AI. Check for mistakes.
Comment on lines 16 to 17
"@rsbuild/plugin-babel": "^1.0.6",
"@rsbuild/plugin-solid": "^1.0.6",
Copy link

Copilot AI Jan 15, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The @rsbuild/core dependency is being updated to v2.0.0-0 (a major version pre-release), but @rsbuild/plugin-babel and @rsbuild/plugin-solid remain at v1.0.6. A major version bump in the core package typically includes breaking changes that may require corresponding updates to plugins. Please verify that these plugin versions are compatible with @rsbuild/core v2.0.0-0, or update the plugin versions accordingly.

Suggested change
"@rsbuild/plugin-babel": "^1.0.6",
"@rsbuild/plugin-solid": "^1.0.6",
"@rsbuild/plugin-babel": "^2.0.0-0",
"@rsbuild/plugin-solid": "^2.0.0-0",

Copilot uses AI. Check for mistakes.
Comment on lines 16 to 17
"@rsbuild/plugin-babel": "^1.0.6",
"@rsbuild/plugin-solid": "^1.0.6"
Copy link

Copilot AI Jan 15, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The @rsbuild/core dependency is being updated to v2.0.0-0 (a major version pre-release), but @rsbuild/plugin-babel and @rsbuild/plugin-solid remain at v1.0.6. A major version bump in the core package typically includes breaking changes that may require corresponding updates to plugins. Please verify that these plugin versions are compatible with @rsbuild/core v2.0.0-0, or update the plugin versions accordingly.

Suggested change
"@rsbuild/plugin-babel": "^1.0.6",
"@rsbuild/plugin-solid": "^1.0.6"
"@rsbuild/plugin-babel": "^2.0.0-0",
"@rsbuild/plugin-solid": "^2.0.0-0"

Copilot uses AI. Check for mistakes.
@chenjiahan chenjiahan merged commit bd187de into main Jan 15, 2026
16 checks passed
@chenjiahan chenjiahan deleted the create_rsbuild_0115 branch January 15, 2026 02:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant