npm / @rspack/core
@rspack/core
What changed in @rspack/core 1 to 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
4 new APIs and options1 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@rspack/core 22 changes
New APIs and options 2
Enables React Compiler to automatically optimize React code, with a boolean default configuration or an object for customizing options such as target and compilationMode.
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.
@rspack/core 13 changes
New APIs and options 2
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.
Adds an option to collect exported enum information for cross-module inline optimization; supports all enums, no enums, or const enums only.
Fixes and other changes 1
Module Federation with exposes works with chunks: 'all', allowing code splitting across initial and async chunks without breaking remote module splitting.