rstackjs avatar

Rspack V2 Upgrade

This walks you through bumping a Rspack 1.x project to v2 by checking your package.json and config, pulling up the official migration guide at rspack.rs, then systematically updating dependencies like @rspack/core and applying breaking changes to your configuration. It's methodical: plan the changes, upgrade the packages, fix the config, then validate with your build and tests. Useful if you want to avoid the usual upgrade mess of missing a renamed option or deprecated plugin API. The workflow is pretty paint by numbers, which is exactly what you want when dealing with breaking changes in a bundler.

skills.sh installs
528
GitHub stars
98
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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.

Sponsors

Details

Repository
github.com/rstackjs/agent-skills
Category
AI & Agent Building
First seen
Jun 3, 2026

More from rstackjs/agent-skills

All 12
1aj-geddes avatarmicroservices-architectureaj-geddes/useful-ai-promptsDesign and implement microservices architecture including service boundaries, communication patterns, API gateways, service mesh, service discovery, and distrib527skills.sh installs
2aj-geddes avatarsql-query-optimizationaj-geddes/useful-ai-promptsAnalyze and optimize SQL queries for performance. Use when improving slow queries, reducing execution time, or analyzing query performance in PostgreSQL and MyS527skills.sh installs
3get-convex avatarmigration-helperget-convex/agent-skillsPlan and execute Convex schema migrations safely, including adding fields, creating tables, and data transformations. Use when schema changes affect existing da527skills.sh installs
4petekp avatartypographypetekp/agent-skillsApply professional typography principles to create readable, hierarchical, and aesthetically refined interfaces. Use when setting type scales, choosing fonts, a526skills.sh installs
5intellectronica avatarray-so-code-snippetintellectronica/agent-skillsGenerate beautiful code snippet images using ray.so. This skill should be used when the user asks to create a code image, code screenshot, code snippet image, o522skills.sh installs
6plugin87 avatartoken-buildplugin87/ux-ui-agent-skillsSet up or run the token build pipeline — transform the DTCG tokens/*.json (source of truth) into platform artifacts (CSS variables, Tailwind @theme, JS/TS, iOS 522skills.sh installs