mcpField
R
rspack-v2-upgrade

rspack-v2-upgrade

github.com/rstackjsDevelopment97518 installsUpdated 6d ago
Repository

About rspack-v2-upgrade

A migration workflow for upgrading projects from Rspack 1.x to v2. It guides developers through inspecting dependencies and configuration, applying the official migration guide, and validating the updated project.

Key features

  1. 01Inspect Rspack packages and config
  2. 02Consult the official migration guide
  3. 03Identify applicable breaking changes
  4. 04Upgrade packages and update config
  5. 05Validate builds, tests, and type checks

Use cases

  1. 01Planning a Rspack v2 migration
  2. 02Updating project configuration and plugins
  3. 03Checking an upgrade for build or test issues

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/rstackjs/agent-skills --skill rspack-v2-upgrade

After installing, type/rspack-v2-upgradein Claude Code to confirm it loaded.

Details

From the project README

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.

Comments

Markdown supported