Skip to content
rstackjs avatar

Rsbuild V2 Upgrade

Step-by-step guide for upgrading a Rsbuild 1.x project to v2, covering dependencies and config changes.

CCM score
54 of 100
skills.sh installs
505
GitHub stars
101
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the full upgrade flow: reading the current setup, planning breaking changes, updating dependencies, and validating the build
  • Points to the official v1-to-v2 migration guide as the source of truth for breaking changes and removed or renamed options
  • Runs npx taze major --include /rsbuild/ -w -r to bump Rsbuild plugins, alongside @rsbuild/core to v2
  • Designed for projects that use rsbuild.config files and need to fix build, dev, and type-check errors after the upgrade

Install

$ npx -y skills add rstackjs/agent-skills --skill rsbuild-v2-upgrade -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Rsbuild v1 to v2 upgrade

Workflow

  1. Confirm current setup

    • Read package.json to identify Rsbuild and plugin packages in use.
    • Locate the Rsbuild config file (commonly rsbuild.config.(ts|js|mjs|cjs)).
  2. Open the official upgrade guide

  3. Plan the upgrade path

    • Compare the current project config with the migration guide.
    • List breaking changes that apply to the project’s current config and plugins.
    • Note any removed or renamed options, defaults, or plugin APIs.
  4. Update dependencies

    • Bump @rsbuild/core to v2
    • Bump Rsbuild plugins to latest versions via npx taze major --include /rsbuild/ -w -r
  5. Apply config and code changes

    • Update the Rsbuild config to match v2 options and defaults.
    • Remove deprecated or unsupported settings.
  6. Validate

    • Run the build and dev commands.
    • Run project tests or type checks.
    • Fix any warnings or errors surfaced by the new version.

Details

Repository
github.com/rstackjs/agent-skills
Categories
Frontend & UI Code, CLI & Terminal
First seen
Jun 3, 2026

Questions

What does the rsbuild-v2-upgrade skill do?

rsbuild-v2-upgrade guides an agent through upgrading a Rsbuild 1.x project to v2. It reads package.json and the Rsbuild config, follows the official v1 to v2 upgrade guide, bumps @rsbuild/core and plugins, then applies config changes and checks the build.

How do I install the rsbuild-v2-upgrade skill?

Run npx -y skills add rstackjs/agent-skills --skill rsbuild-v2-upgrade -y in your project. Once installed, rsbuild-v2-upgrade lets your agent upgrade a Rsbuild 1.x project to v2 with dependency and configuration updates.

Which skills are listed beside rsbuild-v2-upgrade in Frontend & UI Code?

rsbuild-v2-upgrade sits in the Frontend & UI Code category next to vercel-react-best-practices, web-design-guidelines, design-taste-frontend, vercel-composition-patterns and lark-apps. Its focus is narrower than those, covering only the Rsbuild v1 to v2 migration.

More from rstackjs/agent-skills

All 12

Similar to Rsbuild V2 Upgrade

More Frontend & UI Code