其他

rspack-v2-upgrade

rstackjs/agent-skills

Use when upgrading a Rspack 1.x project to v2, including dependency and configuration updates.

  • 519 次安装
  • 97 星标
  • 收录于

安装命令

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

SKILL.md

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.