v2.3.1
Added 1
- Support incremental runtime module updates
Changed 4
- Disable cacheInfo in stats by default behavior changed · inferred, marked in the notes below
- Coalesce queued native watcher batches
- Keep type and layer filters on the native path for split-chunks
- Cache issuer paths during stats generation
Fixed 16
- Compare named cache groups by the size they actually save
- Use the correct column instead of the line number in JS error loc
- Skip stylesheets of entries not on the page on hot update
- Wait for aggregateTimeout after the last watcher change
- Avoid using absolute paths in sourcemap hashes
- Preserve worker callback ownership and native module lifetime
- Cache rendered diagnostics across rebuilds
- Keep exports referenced through arguments in import().then callback
- Include shared initial chunks in the CSS filename runtime
- Gate the stylesheet link runtime by chunk loading
- Preserve missing source contents as null
- Preserve parser flags during lightningcss-loader stylesheet conversion
- Prevent a generated-only mapping from shadowing a mapped one at the same column
- Update allocative root macro for ctor 0.13
- Validate chunk versions before HMR installation
- Use correct async startup handlers in the Module Federation rspack runtime
1 change to check, marked in the notes below
From rspack
What's Changed
New Features 🎉
- feat(runtime): support incremental runtime module updates by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/16326
Performance 🚀
- perf(stats): disable cacheInfo by default by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16356 behavior changed · inferred
- perf(watcher): coalesce queued native watcher batches by @guru-irl in https://github.com/web-infra-dev/rspack/pull/16344
- perf(split-chunks): keep type and layer filters on the native path by @guru-irl in https://github.com/web-infra-dev/rspack/pull/16279
- perf(stats): cache issuer paths during stats generation by @stormslowly in https://github.com/web-infra-dev/rspack/pull/16351
Bug Fixes 🐞
- fix: compare named cache groups by the size they actually save by @hai-x in https://github.com/web-infra-dev/rspack/pull/16291
- fix: don't use the line number as the column of a JS error loc by @hai-x in https://github.com/web-infra-dev/rspack/pull/16324
- fix(css): skip stylesheets of entries not on the page on hot update by @CyberAP in https://github.com/web-infra-dev/rspack/pull/16215
- fix(watcher): wait for aggregateTimeout after the last change by @guru-irl in https://github.com/web-infra-dev/rspack/pull/16304
- fix: avoid using absolute paths in sourcemap hashes by @cellison-figma in https://github.com/web-infra-dev/rspack/pull/16313
- fix(binding): preserve worker callback ownership and native module lifetime by @SyMind in https://github.com/web-infra-dev/rspack/pull/16318
- fix: cache rendered diagnostics across rebuilds by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/16358
- fix(javascript): keep exports referenced through arguments in import().then callback by @ump45nose in https://github.com/web-infra-dev/rspack/pull/16392
- fix(css): include shared initial chunks in filename runtime by @intellild in https://github.com/web-infra-dev/rspack/pull/16355
- fix(css): gate the stylesheet link runtime by chunk loading by @intellild in https://github.com/web-infra-dev/rspack/pull/16340
- fix(sources): preserve missing source contents as null by @SyMind in https://github.com/web-infra-dev/rspack/pull/16366
- fix(lightningcss-loader): preserve parser flags during stylesheet conversion by @mattcosta7 in https://github.com/web-infra-dev/rspack/pull/16378
- fix(sources): don't let a generated-only mapping shadow a mapped one at the same column by @flex-mookeun in https://github.com/web-infra-dev/rspack/pull/16363
- fix(allocative): update root macro for ctor 0.13 by @hai-x in https://github.com/web-infra-dev/rspack/pull/16385
- fix(hmr): validate chunk versions before installation by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/16360
- fix(mf): use correct async startup handlers in rspack runtime by @hai-x in https://github.com/web-infra-dev/rspack/pull/16399
Refactor 🔨
- refactor(javascript): migrate to semantic symbol links by @CPunisher in https://github.com/web-infra-dev/rspack/pull/16335
- refactor(concatenate): drop repeated lookups and dead binding fields by @hai-x in https://github.com/web-infra-dev/rspack/pull/16219
Document 📖
- docs: Rspack 2.3 release blog by @intellild in https://github.com/web-infra-dev/rspack/pull/16179
- docs: refine Rspack 2.3 announcement wording by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16337
- docs: improve Rspack 2.3 announcement readability by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16339
- docs: document cache statistics in Stats JSON by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16353
- docs: simplify split chunks option headings and examples by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16364
- docs: explain split chunks concepts and cache groups by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16365
- docs: explain base URI in the asset base path guide by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16367
- docs: correct split chunks option behavior and defaults by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16375
- docs: add split chunks option examples by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16388
Other Changes
- test(cli): remove redundant config extends compatibility test by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16334
- test: migrate remaining CommonJS configs to TypeScript by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16342
- test(cli): migrate functional configs to ESM TypeScript by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16343
- test: migrate remaining mjs configs to TypeScript by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16354
- chore(deps): replace direct acorn dependency with swc-next parser by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16352
- test(e2e): migrate configs to ESM TypeScript by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16357
- chore(deps): update dependency ubuntu to v26 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16381
- chore(deps): update patch npm dependencies by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16370
- chore(deps): update github-actions by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16380
- chore(deps): update dependency @microsoft/api-extractor to ^7.60.1 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16372
- chore(deps): update dependency less-loader to ^13.1.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16373
- chore(deps): update dependency glob to v14 [security] by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16384
- test: move cache related tests to newCacheCases by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/16336
- chore(deps): upgrade Rstack CLI to v0.9.0 by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16396
New Contributors
- @ump45nose made their first contribution in https://github.com/web-infra-dev/rspack/pull/16392
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v2.3.0...v2.3.1