What problem does it solve?
Maintaining the Rspack integration in Next.js requires coordinating npm package versions, Rust crate dependencies, and toolchain configurations across an independent workspace. This Skill provides a structured workflow to keep these moving parts in sync and avoid breaking the local build.
Core Features & Use Cases
- Version Mapping: Translates upstream
@rspack/core npm versions to corresponding rspack_* crate versions and Rust nightly toolchain versions.
- Local Build & Link: Walks through building
@next/rspack-core from source and linking it into packages/next-rspack for local testing.
- Test Execution: Documents the
pnpm test-rspack, test-dev-rspack, and test-start-rspack commands and the NEXT_RSPACK environment variable used to differentiate Rspack from Webpack logic.
- Use Case: When a new Rspack release ships, use this Skill to bump the npm dependency, update Cargo.toml crate versions, refresh the Rust toolchain, rebuild the binding, and run the Rspack test suite.
Quick Start
Upgrade the @rspack/core dependency and rspack crate versions in the rspack workspace, then rebuild and link @next/rspack-core for local testing.