rsbuild-v2-upgrade

Migrate Rsbuild projects from v1 to v2 by updating dependencies, configurations, and plugins.

86|1|Updated Jan 20, 2026
One-click install
npx skills add https://github.com/rstackjs/agent-skills --skill rsbuild-v2-upgrade
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rsbuild-v2-upgrade
Source: https://github.com/rstackjs/agent-skills/tree/main/skills/rsbuild-v2-upgrade
Command: npx skills add https://github.com/rstackjs/agent-skills --skill rsbuild-v2-upgrade

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Migrates Rsbuild projects from v1 to v2 by updating dependencies, configurations, and plugin usage to align with the official upgrade path, reducing manual work and errors.

Core Features & Use Cases

  • Automated upgrade flow: identifies current Rsbuild setup, targets v2-compatible configs and core packages.
  • Plugin and config modernization: updates plugin versions and rsbuild.config.* options to match v2 requirements.
  • Validation & verification: validates the upgrade by building and running tests in CI or local environments.

Quick Start

Start the upgrade by scanning your project, then follow the guided steps to migrate:

  • Review package.json and rsbuild.config.(ts|js|mjs|cjs).
  • Run the upgrade flow to bump core and update plugins.
  • Build and run tests to verify the upgrade.

Frequently Asked Questions about rsbuild-v2-upgrade

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I migrate my Rsbuild v1 project to v2?

Migrating to Rsbuild v2 involves updating @rsbuild/core and plugins to v2-compatible versions, adjusting rsbuild.config.* options, and validating with builds and tests. Start by scanning your project structure, review your package.json and config file, then follow the guided upgrade flow to apply v2 changes automatically.

What changes do I need to make in rsbuild.config for v2?

Rsbuild v2 introduces config option changes from v1. The upgrade process identifies and updates your rsbuild.config.ts, rsbuild.config.js, and related files to align with v2 requirements, including plugin configuration updates and deprecated option removals.

Can I upgrade Rsbuild plugins alongside the core package?

Yes. The upgrade flow handles both @rsbuild/core and plugin package versions simultaneously, identifying which plugins need v2 updates and applying version bumps automatically to maintain compatibility across your build setup.

How do I verify my Rsbuild v2 upgrade was successful?

Validation runs automated builds and test suites in local workflows and CI pipelines to confirm the upgrade completed successfully. If builds pass and tests run without errors, your v1-to-v2 migration is complete and your project is ready for v2.

Does the Rsbuild v1 to v2 migration work with CI environments?

Yes. The upgrade process applies to both local development workflows and CI pipelines with varied plugin configurations, ensuring your migration strategy works regardless of where you run it.

What happens if my project uses custom Rsbuild plugins?

The upgrade identifies custom and third-party plugins in your setup and updates them to v2-compatible versions where available. You may need to review plugin documentation for breaking changes specific to your custom implementations.