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 #15334
- feat: track dependencies in loader cache by @intellild in #15325
Performance 馃殌
- perf(core): store FactorizeInfo path dependencies as compact slices by @stormslowly in #15306
Bug Fixes 馃悶
- fix(cli): disable stats logging by default by @hardfist in #15328
- fix: disable incremental outside development mode by @hardfist in #15332
- fix(core): run afterCompile before shouldEmit and asset emission by @kakiuwang-ui in #15326
- fix(cache): clear stale issuer updates between rebuilds by @zhsama in #15276
- fix(css): exclude asset output path from URLs by @LingyuCoder in #15315
- fix(core): bound concurrent asset writes during emit by @lazerg in #15342
- fix(minify): update swc_ecma_minifier to 61.0.4 by @LingyuCoder in #15343
- fix(ids): correct compact hashed API names by @LingyuCoder in #15356
- fix(rsc): store server compiler ID in native coordinator by @SyMind in #15307
- fix(cache): persist dependency id in metadata by @hardfist in #15345
- fix(cache): normalize restored paths on Windows by @hardfist in #15357
Refactor 馃敤
- refactor(split-chunks): skip disjoint group cleanup by @LingyuCoder in #15318
Document 馃摉
- docs: 2.2.0 release blog by @stormslowly in #15240
- docs: clarify incremental mode requirement by @hardfist in #15339
- docs: move LLMs UI to page outline by @chenjiahan in #15341
- docs: reorganize plugin documentation by @chenjiahan in #15347
Other Changes
- chore(deps): migrate to @rstackjs/doc-ui v1.14.9 by @chenjiahan in #15349
New Contributors
- @CoderSerio made their first contribution in #15334
Full Changelog: v2.2.0...v2.2.1