Skip to content
rstackjs avatar

Rspack V2 Upgrade

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

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

Own this skill? Claim it

What it does

  • Covers the upgrade workflow: confirming the current setup, planning changes, updating packages, applying config edits, and validating
  • Upgrades @rspack/core, @rspack/cli, @rspack/dev-server, and @rspack/plugin-react-refresh to v2 and points to the official migration guide as the reference
  • Directs the agent to find rspack.config files and package.json, then remove deprecated, renamed, or unsupported options
  • Designed for projects moving from Rspack 1.x to v2 that need breaking changes mapped against their own plugins and config

Install

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

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

Files

Rspack 1.x to v2 upgrade

Workflow

  1. Confirm current setup

    • Read package.json to identify Rspack packages in use.
    • Locate the Rspack config file (commonly rspack.config.(ts|js|mjs|cjs)).
  2. Open the official migration guide

  3. Plan required changes

    • 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

    • Upgrade Rspack packages to v2: @rspack/core, @rspack/cli, @rspack/dev-server, @rspack/plugin-react-refresh.
  5. Apply migration changes

    • Update the Rspack config and related code according to the official guide.
    • Remove deprecated or unsupported options.
  6. Validate

    • Run 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, Technical Documentation
First seen
Jun 3, 2026

Questions

What does the rspack-v2-upgrade skill do?

The rspack-v2-upgrade skill helps an agent upgrade a Rspack 1.x project to v2. It reads the project's package.json and Rspack config, follows the official migration guide, updates the Rspack packages, and then validates the build with build, dev, and test runs.

Which packages does the rspack-v2-upgrade skill update?

The skill upgrades @rspack/core, @rspack/cli, @rspack/dev-server, and @rspack/plugin-react-refresh to v2. It also updates the Rspack config and related code according to the official guide, removing deprecated or unsupported options.

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

Run npx -y skills add rstackjs/agent-skills --skill rspack-v2-upgrade -y in your project. This installs the skill so your agent can use it for Rspack 1.x to v2 upgrades.

Where does rspack-v2-upgrade stand in the Frontend & UI Code category?

On Claude Marketplaces, rspack-v2-upgrade is listed in the Frontend & UI Code category alongside vercel-react-best-practices, web-design-guidelines, design-taste-frontend, vercel-composition-patterns, and lark-apps. It stands apart by focusing narrowly on the Rspack 1.x to v2 upgrade path.

More from rstackjs/agent-skills

All 12

Similar to Rspack V2 Upgrade

More Frontend & UI Code