# What changed in @rspack/core

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

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

## @rspack/core 2

### New APIs and options

- Enables React Compiler to automatically optimize React code, with a boolean default configuration or an object for customizing options such as target and compilationMode. (2.1.0) — [docs](https://rspack.rs/guide/builtin-loaders/swc-loader)
- Setting detectSyntax to "auto" infers jsc.parser from the resource extension, allowing one rule to handle mixed module types. Explicit jsc.parser.syntax takes precedence. (2.0.0) — [docs](https://rspack.rs/guide/builtin-loaders/swc-loader)

## @rspack/core 1

### New APIs and options

- Collects TypeScript AST information for subsequent Rspack processes, providing a better TypeScript development experience and smaller output bundles. Subsequent Normal Loaders must not modify the corresponding AST. (1.7.0) — [docs](https://rspack.rs/guide/builtin-loaders/swc-loader)
- Adds an option to collect exported enum information for cross-module inline optimization; supports all enums, no enums, or const enums only. (1.7.0) — [docs](https://rspack.rs/guide/builtin-loaders/swc-loader)

### Fixes and other changes

- Module Federation with exposes works with chunks: 'all', allowing code splitting across initial and async chunks without breaking remote module splitting. (1.6.2) — [docs](https://rspack.rs/plugins/split-chunks-plugin)
