# What changed in @rspack/cli

> 6 changes in @rspack/cli 1 to 2 from its official release notes, upgrade guides and advisories: 1 breaking, 4 new APIs and options. Each one cited. Sources checked 2026-11-30. HTML: https://unstale.sh/npm/@rspack/cli/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## @rspack/cli 2

### New APIs and options

- 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.0) — [docs](https://rspack.rs/guide/builtin-loaders/swc-loader)
- When set to "auto", infers jsc.parser from the resource extension so one rule can handle mixed module types. (2.0.0) — [docs](https://rspack.rs/guide/builtin-loaders/swc-loader)

## @rspack/cli 1

### Breaking changes

- By default, Rspack performs inline optimization for all enums; use 'const-only' with transform.tsEnumIsMutable = true to inline only const enums. (1.7.0) — [docs](https://rspack.rs/guide/builtin-loaders/swc-loader)

### New APIs and options

- 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.0) — [docs](https://rspack.rs/guide/builtin-loaders/swc-loader)
- Controls collection of exported enum information for cross-module inline optimization; supports true, false, or 'const-only' and defaults to false. (1.7.0) — [docs](https://rspack.rs/guide/builtin-loaders/swc-loader)

### Fixes and other changes

- Module Federation with exposes now works seamlessly with chunks: 'all', which previously broke remote module splitting. (1.6.2) — [docs](https://rspack.rs/plugins/split-chunks-plugin)
