v2.2.1
Added 2
- Align wasmStreamingFallback with webpack
- Track dependencies in loader cache
Changed 1
- Store FactorizeInfo path dependencies as compact slices
Fixed 11
- Correct compact hashed module and chunk IDs naming from compat-hashed to compact-hashed, with deprecated compatibility aliases maintained for backward compatibility
- Disable stats logging by default
- Disable incremental outside development mode
- Run afterCompile before shouldEmit and asset emission
- Clear stale issuer updates between rebuilds
- Exclude asset output path from URLs in CSS
- Bound concurrent asset writes during emit
- Update swc_ecma_minifier to 61.0.4
- Store server compiler ID in native coordinator
- Persist dependency id in metadata
- Normalize restored paths on Windows
From rspack
Highlights
Corrected compact-hashed IDs naming
Rspack 2.2.0 introduced compact hashed module and chunk IDs under the mistakenly named compat-hashed option and CompatHashedModuleIdsPlugin / CompatHashedChunkIdsPlugin APIs. Rspack 2.2.1 corrects these names to compact-hashed, CompactHashedModuleIdsPlugin, and CompactHashedChunkIdsPlugin.
The names introduced in 2.2.0 remain available as deprecated compatibility aliases, but we recommend upgrading to Rspack 2.2.1 and using the corrected names:
module.exports = {
optimization: {
moduleIds: 'compact-hashed',
chunkIds: 'compact-hashed',
},
};
What's Changed
New Features 🎉
- feat(wasm): align wasmStreamingFallback with webpack by @CoderSerio in https://github.com/web-infra-dev/rspack/pull/15334
- feat: track dependencies in loader cache by @intellild in https://github.com/web-infra-dev/rspack/pull/15325
Performance 🚀
- perf(core): store FactorizeInfo path dependencies as compact slices by @stormslowly in https://github.com/web-infra-dev/rspack/pull/15306
Bug Fixes 🐞
- fix(cli): disable stats logging by default by @hardfist in https://github.com/web-infra-dev/rspack/pull/15328
- fix: disable incremental outside development mode by @hardfist in https://github.com/web-infra-dev/rspack/pull/15332
- fix(core): run afterCompile before shouldEmit and asset emission by @kakiuwang-ui in https://github.com/web-infra-dev/rspack/pull/15326
- fix(cache): clear stale issuer updates between rebuilds by @zhsama in https://github.com/web-infra-dev/rspack/pull/15276
- fix(css): exclude asset output path from URLs by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/15315
- fix(core): bound concurrent asset writes during emit by @lazerg in https://github.com/web-infra-dev/rspack/pull/15342
- fix(minify): update swc_ecma_minifier to 61.0.4 by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/15343
- fix(ids): correct compact hashed API names by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/15356
- fix(rsc): store server compiler ID in native coordinator by @SyMind in https://github.com/web-infra-dev/rspack/pull/15307
- fix(cache): persist dependency id in metadata by @hardfist in https://github.com/web-infra-dev/rspack/pull/15345
- fix(cache): normalize restored paths on Windows by @hardfist in https://github.com/web-infra-dev/rspack/pull/15357
Refactor 🔨
- refactor(split-chunks): skip disjoint group cleanup by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/15318
Document 📖
- docs: 2.2.0 release blog by @stormslowly in https://github.com/web-infra-dev/rspack/pull/15240
- docs: clarify incremental mode requirement by @hardfist in https://github.com/web-infra-dev/rspack/pull/15339
- docs: move LLMs UI to page outline by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/15341
- docs: reorganize plugin documentation by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/15347
Other Changes
- chore(deps): migrate to @rstackjs/doc-ui v1.14.9 by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/15349
New Contributors
- @CoderSerio made their first contribution in https://github.com/web-infra-dev/rspack/pull/15334
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v2.2.0...v2.2.1