unstale

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

@unstale/cli on npm

@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.

    2.1.0docs

  • When set to "auto", infers jsc.parser from the resource extension so one rule can handle mixed module types.

    2.0.0docs

@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.

    1.7.0docs

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.

    1.7.0docs

  • Controls collection of exported enum information for cross-module inline optimization; supports true, false, or 'const-only' and defaults to false.

    1.7.0docs

Fixes and other changes 1

  • Module Federation with exposes now works seamlessly with chunks: 'all', which previously broke remote module splitting.

    1.6.2docs