npm / @rspack/cli
@rspack/cli
What changed in @rspack/cli 1 to 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
1 breaking4 new APIs and options1 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@rspack/cli 22 changes
New APIs and options 2
Enables React Compiler to automatically optimize React code; set to true for the default configuration or pass an object to customize options such as target and compilationMode.
When set to "auto", infers jsc.parser from the resource extension so one rule can handle mixed module types.
@rspack/cli 14 changes
Breaking changes 1
By default, Rspack performs inline optimization for all enums; use 'const-only' with transform.tsEnumIsMutable = true to inline only const enums.
New APIs and options 2
Collects TypeScript AST information for subsequent Rspack processes, improving TypeScript development experience and reducing output bundle size. Subsequent Normal Loaders must not modify the corresponding AST.
Controls collection of exported enum information for cross-module inline optimization; supports true, false, or 'const-only' and defaults to false.
Fixes and other changes 1
Module Federation with exposes now works seamlessly with chunks: 'all', which previously broke remote module splitting.