v2.3.5
Rspack now generates default Stats JSON through a faster path and uses compact tables for module and dependency-reason data. In one anonymized production client build, the reason-data change reduced the median time of the first stats.toJson() call from 7.30 s to 2.75 s. #16906 · #16952 · #16976
Rspack now reuses parsed loader requests within a compilation and cuts worker round trips for dependency updates, logging, and diagnostics. #16901 · #16933 · #16934 · #16936
Rspack now keeps compact-hashed chunk IDs stable across rebuilds and handles reused chunk IDs during hot updates. This fixes crashes that could occur when lazy compilation activates a chunk in a build that uses workers. #16877 · #16884
- feat(javascript): highlight code in dynamic import warnings by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16850
- feat(core): highlight suggested paths in module resolution errors by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16854
- feat(javascript): clarify DefinePlugin conflict warnings by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16855
- feat: normalize source map template path separators by @SyMind in https://github.com/web-infra-dev/rspack/pull/16717
- feat(hash): implement RspackHash for HashMap, HashSet, and InternedPath by @intellild in https://github.com/web-infra-dev/rspack/pull/16888
- feat(watcher): introduce DirectoryWatcher model and WatcherManager ownership routing by @stormslowly in https://github.com/web-infra-dev/rspack/pull/16935
- perf(runtime): emit template literals for chunk filenames by @hai-x in https://github.com/web-infra-dev/rspack/pull/16831
- perf(loader): skip waiting on an empty dependency queue by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16881
- perf(loader): create the sync response channel on demand by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16887
- perf(loader): create dependency state on demand by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16894
- perf(loader): cache parsed loader requests per compilation by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16901
- perf: collapse adjacent
**segments in the glob check by @hai-x in https://github.com/web-infra-dev/rspack/pull/16903 - perf(stats): fast-path default stats JSON by @SyMind in https://github.com/web-infra-dev/rspack/pull/16906
- perf(sources): share source map text in persistent cache by @SyMind in https://github.com/web-infra-dev/rspack/pull/16912
- perf(loader): skip success replies for parallel dependency updates by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16933
- perf(loader): skip success replies for parallel loader logs by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16934
- perf(loader): skip success replies for emitted warnings and errors by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16936
- perf(loader): skip success replies for parallel loader state updates by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16937
- perf(loader): lazily track parallel loader requests by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16943
- perf(stats): share issuer fields across module entries by @SyMind in https://github.com/web-infra-dev/rspack/pull/16960
- perf(fs): bound macOS NativeFileSystem::read with semaphore by @CPunisher in https://github.com/web-infra-dev/rspack/pull/16964
- perf(loader): defer extracting parallel loader names by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16974
- perf(loader): only check the module cache for ESM loaders by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16973
- perf(stats): store module entries in columnar tables by @SyMind in https://github.com/web-infra-dev/rspack/pull/16976
- perf(binding): optimize more cold-path crates for size by @hai-x in https://github.com/web-infra-dev/rspack/pull/16970
- fix(config): allow array external item values when validating UMD externals by @ragib-mrb in https://github.com/web-infra-dev/rspack/pull/16800
- fix(cli): report circular config extends and allow shared bases by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16836
- fix(core): report unknown entry names in dependOn by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16835
- fix: treat module.exports member writes as side-effect-free by @hai-x in https://github.com/web-infra-dev/rspack/pull/16748
- fix(stats): strip ANSI codes from diagnostics when colors are disabled by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16861
- fix(core): clarify source map data URL decoding warnings by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16856
- fix(binding): preserve JavaScript stacks for module graph errors by @SyMind in https://github.com/web-infra-dev/rspack/pull/16853
- fix(core): strip single-line, multi-line, and empty error headers in cutOffMessage by @ragib-mrb in https://github.com/web-infra-dev/rspack/pull/16801
- fix: implement has() and size on createReadonlyMap by @ragib-mrb in https://github.com/web-infra-dev/rspack/pull/16797
- fix(cache): keep export-star exclusion order stable after a warm start by @guru-irl in https://github.com/web-infra-dev/rspack/pull/16532
- fix(mf): clarify invalid script remote errors by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16863
- fix(core): preserve module references across graph updates by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/16864
- fix(copy-plugin): distinguish missing files from ignored matches by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16866
- fix(html-plugin): report unreadable default templates by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16869
- fix(css): detect CSS modules via matchResource and lazily look up module IDs by @intellild in https://github.com/web-infra-dev/rspack/pull/16880
- fix(cache): support loader cache tracking missing and context dependencies by @intellild in https://github.com/web-infra-dev/rspack/pull/16851
- fix: treat Object.defineProperty on CommonJS exports as side-effect-free by @hai-x in https://github.com/web-infra-dev/rspack/pull/16749
- fix(hmr): handle reused chunk ids during lazy activation by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/16884
- fix(ids): keep compact-hashed chunk ids stable across rebuilds by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/16877
- fix(loader): preserve logger instances in parallel loaders by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16908
- fix(resolver): preserve file and missing dependencies on error and ig… by @intellild in https://github.com/web-infra-dev/rspack/pull/16891
- fix(hmr): stop emitting
.full.jscopies of asset and wasm files by @hai-x in https://github.com/web-infra-dev/rspack/pull/16911 - fix(esm-library): preserve static request positions by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/16651
- fix(cache): share loader options and pkg data across restored modules by @hai-x in https://github.com/web-infra-dev/rspack/pull/16400
- fix(mf): align v1 eager shared consumption with webpack by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/16905
- fix(css): bail out concatenation for CSS modules without JavaScript source by @intellild in https://github.com/web-infra-dev/rspack/pull/16949
- fix(stats): preserve reason activity and pack module reasons by @SyMind in https://github.com/web-infra-dev/rspack/pull/16952
- refactor(watcher): track context members in their directory watcher by @stormslowly in https://github.com/web-infra-dev/rspack/pull/16837
- refactor(watcher): route context events through directory subscriptions by @stormslowly in https://github.com/web-infra-dev/rspack/pull/16838
- refactor(watcher): split path management into focused modules by @stormslowly in https://github.com/web-infra-dev/rspack/pull/16897
- refactor(watcher): store timestamps on their owning directory by @stormslowly in https://github.com/web-infra-dev/rspack/pull/16898
- refactor(runtime): move runtime module rendering into EJS templates by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/16918
- refactor(watcher): extract time types, shared runtime helper, and regression contracts by @stormslowly in https://github.com/web-infra-dev/rspack/pull/16972
- refactor(runtime): deduplicate runtime template registration by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/16957
- refactor(runtime): use one template entry per chunk loader by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/16968
- docs: clarify how the CLI merges extended configurations by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16847
- docs: highlight Rsbuild support in Nuxt 4.7 by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16862
- docs: remove outdated Join us page by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16885
- docs: add VuePress to the ecosystem guide by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16886
- ci(chore): trim build cache statistics from the run summary by @stormslowly in https://github.com/web-infra-dev/rspack/pull/16646
- chore(deps): upgrade pnpm to 12.23.0 by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16865
- chore: install Rstack agent skills with pnpm by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16867
- chore(deps): update qs bundled in @rspack/browser by @CPunisher in https://github.com/web-infra-dev/rspack/pull/16883
- chore(deps): update patch npm dependencies by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16922
- chore(deps): update patch crates by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16921
- chore(deps): update dependency @swc/plugin-remove-console to v18 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16932
- chore(deps): update github-actions by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16930
- chore(deps): update dependency prettier to v3.10.1 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16928
- chore(deps): update yarn to v4.19.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16931
- chore(deps): update dependency ts-checker-rspack-plugin to ^1.9.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16929
- chore(deps): update dependency markdown-to-jsx to ^9.11.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16927
- chore(deps): update rust crate similar-asserts to v2 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16941
- chore(deps): update dependency rimraf to v6 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16940
- chore(deps): update dependency @testing-library/jest-dom to v8 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16939
- chore(deps): update dependency mermaid to ^12.4.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16938
- chore(deps): update swc-next to 0.9.1 by @CPunisher in https://github.com/web-infra-dev/rspack/pull/16967
- test(watcher): add baseline contracts for mid-batch and file-backed context time info by @stormslowly in https://github.com/web-infra-dev/rspack/pull/16958
- chore(deps): update cargo-bins/cargo-binstall action to v1.28.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16971
- revert(fs): restore blocking module file reads by @CPunisher in https://github.com/web-infra-dev/rspack/pull/16982
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v2.3.4...v2.3.5
v2.3.4
Rspack now produces smaller bundles with less runtime code on modern targets, skipping unnecessary helpers, and improved tree-shaking.
Diagnostics across built-in plugins and loaders now include plugin names, loader names, and source filenames so issues are easier to trace back to configuration and source files.
Rspack now supports Solid v2 through solid-loader. create-rspack now includes solid-js and solid-ts starter templates. You can now create Solid projects with create-rspack:
npm create rspack@latest -- --template solid-ts
See #16752.
- feat: support output.environment.spread by @hai-x in https://github.com/web-infra-dev/rspack/pull/16604
- feat: show plugin names in SRI and ESM library diagnostics by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16728
- feat: show plugin names in copy errors and ESM chunk name warnings by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16731
- feat: show loader names in SWC and Lightning CSS warnings by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16732
- feat(runtime): bridge webpack runtime globals for runtime extensions by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/16681
- feat: show source filenames in asset conflict errors by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16733
- feat: support output.environment.symbol by @hai-x in https://github.com/web-infra-dev/rspack/pull/16707
- feat(create-rspack): add Solid JavaScript and TypeScript templates by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16752
- feat(javascript): clarify warnings for dynamic module paths by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16771
- feat(lightningcss): add lightDark feature option by @CyberAP in https://github.com/web-infra-dev/rspack/pull/16829
- feat(lightningcss): support drafts.scrollNavigationControls by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16833
- perf(build): use LLD on macOS by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16666
- perf: avoid eager cloning of parallel loader tasks by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16457
- perf: port upstream specifier parsing fast paths by @SyMind in https://github.com/web-infra-dev/rspack/pull/16719
- perf: emit arrow callbacks for dynamic imports by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16742
- perf(runtime): use globalThis directly when supported by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16745
- perf: skip unused CommonJS default interop getters by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16751
- perf(runtime): trim redundant code in runtime helper templates by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/16766
- perf(runtime): emit concise arrow in getChunkFilename by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/16764
- perf: emit arrow callbacks for remaining dynamic import helpers by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/16765
- perf(runtime): shorten automatic public path code by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16767
- perf(hmr): cache chunk versions and avoid redundant allocations by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/16673
- perf: emit CommonJS default interop getter only when it is read by @hai-x in https://github.com/web-infra-dev/rspack/pull/16811
- fix(cache): validate virtual modules by content in new cache by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/16679
- fix: tree shake shorthand property in destructuring assignment by @hai-x in https://github.com/web-infra-dev/rspack/pull/16659
- fix(ci): handle nightly Rust linker flags in musl builds by @stormslowly in https://github.com/web-infra-dev/rspack/pull/16696
- fix(deps): upgrade SWC to fix preserved class name collisions by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16697
- fix: make warning regex filters stateless by @ragib-mrb in https://github.com/web-infra-dev/rspack/pull/16694
- fix(rsc): preserve CSS import order in RSC entries by @SyMind in https://github.com/web-infra-dev/rspack/pull/16699
- fix(rsc): preserve client module order in RSC entries by @SyMind in https://github.com/web-infra-dev/rspack/pull/16704
- fix(rsc): reuse generated entries from the persistent cache by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/16709
- fix(mf): isolate shared fallback caches and outputs by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/16721
- fix(javascript): avoid numeric-only chunk content hashes by @hai-x in https://github.com/web-infra-dev/rspack/pull/16715
- fix: restore source map extraction warnings from module cache by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/16723
- fix(cache): preserve cacheability for handled importModule errors by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/16727
- fix(css): preserve pure context in nested rules by @intellild in https://github.com/web-infra-dev/rspack/pull/16685
- fix(mf): match short caret and tilde ranges in the consume runtime by @arnaud-zg in https://github.com/web-infra-dev/rspack/pull/16663
- fix(core): stop module graph memory growth in watch mode by @Dennis273 in https://github.com/web-infra-dev/rspack/pull/16475
- fix(html): include the filename in HTML parse errors by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16737
- fix(asset): clarify the error for unknown MIME types by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16741
- fix(core): show the resolution directory in missing loader errors by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16744
- fix(core): distinguish source map read and parse failures by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16746
- fix(define-plugin): clarify conflicting NODE_ENV values by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16747
- fix(core): preserve query and fragment in fully specified import hints by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16756
- fix(core): skip file extension hints when resolving directories by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16757
- fix(runtime): honor even priorities in onChunksLoaded by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16758
- fix(core): shorten long lists of possible exports by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16762
- fix(worker): treat top-level this in classic browser worker entry as global scope by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/16763
- fix: iterate ArrayQueue in FIFO order after internal reversal by @ragib-mrb in https://github.com/web-infra-dev/rspack/pull/16787
- fix(deps): upgrade swc_core to 85.0.0 to keep React Compiler source maps by @Nsttt in https://github.com/web-infra-dev/rspack/pull/16775
- fix(core): clarify the hint for fully specified imports by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16788
- fix: clamp unit index and reject non-finite values in formatSize by @ragib-mrb in https://github.com/web-infra-dev/rspack/pull/16789
- fix: return false in Template.getModulesArrayBounds for empty or invalid module ids by @ragib-mrb in https://github.com/web-infra-dev/rspack/pull/16790
- fix: reject out-of-range version components in encodeVersion by @ragib-mrb in https://github.com/web-infra-dev/rspack/pull/16791
- fix: honor boolean stats options and aggregate versions by @ragib-mrb in https://github.com/web-infra-dev/rspack/pull/16726
- fix(rsc): unblock compiler shutdown after a fatal build error by @SyMind in https://github.com/web-infra-dev/rspack/pull/16818
- fix(css): resolve imported @value class selectors to the shared scope… by @intellild in https://github.com/web-infra-dev/rspack/pull/16740
- fix: tree shake evaluation-only dynamic imports by @SyMind in https://github.com/web-infra-dev/rspack/pull/16738
- fix(css): inject external @import rules with exportType style by @intellild in https://github.com/web-infra-dev/rspack/pull/16734
- fix(css): preserve inherited conditions and intersect media queries for external @import by @intellild in https://github.com/web-infra-dev/rspack/pull/16759
- fix(cache): honor virtual module writes in thisCompilation by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/16820
- fix(rsc): include client references returned by server actions by @SyMind in https://github.com/web-infra-dev/rspack/pull/16821
- fix(cache): avoid producer dependencies on extracted CSS modules by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/16825
- fix(cache): respect force_build when restoring modules from cache by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/16826
- fix: compile error by @hai-x in https://github.com/web-infra-dev/rspack/pull/16828
- fix(tree-shaking): track short-circuit dependency guards by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/16816
- fix(javascript): clarify invalid DefinePlugin expression warnings by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16794
- fix: normalize absolute source map resource paths by @SyMind in https://github.com/web-infra-dev/rspack/pull/16778
- refactor(hmr): resolve loading chunk data in the assign runtime ids pass by @hai-x in https://github.com/web-infra-dev/rspack/pull/16710
- refactor: avoid redundant work in source map extraction by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/16736
- refactor(core): share module options by matched rule effects by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/16743
- refactor(watcher): store timestamps and event baselines in one file record by @stormslowly in https://github.com/web-infra-dev/rspack/pull/16824
- docs: clarify Stats usage and performance guidance by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16678
- docs: clarify splitChunks performance guidance by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16682
- docs: clarify module rules performance guidance by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16691
- docs: explain externals function performance overhead by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16706
- docs: document Solid 2 integration with solid-loader by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16720
- docs(agents): use compilerCases only for direct compiler tests by @ScriptedAlchemy in https://github.com/web-infra-dev/rspack/pull/16755
- docs: remove outdated ESM output roadmap by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16761
- docs: clarify preserveModules usage and output by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16768
- docs: rewrite the ESM output guide by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16772
- docs: clarify output.module and its effect on defaults by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16774
- docs: clarify script types for runtime chunks and HTML entries by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16776
- docs: clarify when avoidEntryIife removes the entry wrapper by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16792
- docs: clarify ESM library output types by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16795
- docs: clarify how ESM output loads external dependencies by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16834
- chore: upgrade Rust to nightly-2026-11-13 (take 2) by @quininer in https://github.com/web-infra-dev/rspack/pull/16677
- chore: remove obsolete development commands by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16684
- chore(deps): remove unused plugin dependencies by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16688
- test: clean up disabled Rust tests by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16689
- chore: remove stale platform release commands by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16692
- test: remove deprecated CSS experiment options by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16693
- test: customize persistent cache checks per namespace by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/16680
- test: restore commented loader source map cases by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16698
- chore: remove redundant homepage warnings by @stormslowly in https://github.com/web-infra-dev/rspack/pull/16700
- test: allow cases to skip persistent cache checks by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/16705
- test: clean up stale test filters by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16708
- test: remove obsolete compatibility helpers by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16714
- test: remove obsolete HTTPS lazy compilation fixture by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16716
- chore: clean up stale maintenance configuration by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16718
- test: shrink file-dependencies-huge to fix flaky afterAll timeout by @hai-x in https://github.com/web-infra-dev/rspack/pull/16722
- chore: upgrade to Rslib 1.1 beta by @elecmonkey in https://github.com/web-infra-dev/rspack/pull/16735
- chore(deps): update patch npm dependencies by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16783
- chore(deps): update dependency playwright to v1.65.1 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16780
- chore(deps): update dependency webpack-sources to v3.7.1 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16781
- chore(deps): update patch crates by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16782
- test(core): add a directory for unit tests by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16793
- test(core): move Template unit tests into the core package by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16798
- chore(deps): update dependency ws to ^8.23.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16810
- chore(deps): update dependency ts-checker-rspack-plugin to ^1.8.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16809
- chore(deps): update dependency cspell to ^10.5.2 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16807
- test(core): move standalone assertions into the core unit suite by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16799
- chore(deps): update dependency path-serializer to v0.8.1 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16808
- test(watcher): cover snapshots of times info with symlink following disabled by @stormslowly in https://github.com/web-infra-dev/rspack/pull/16823
- chore: bump
swc_corefrom 85.0 to 85.1 by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16832
- @Dennis273 made their first contribution in https://github.com/web-infra-dev/rspack/pull/16475
- @Nsttt made their first contribution in https://github.com/web-infra-dev/rspack/pull/16775
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v2.3.3...v2.3.4
v2.3.3
HTTP module lockfiles and content cache filenames now match webpack, allowing existing webpack lockfiles and cached resources to be reused together. The previous Rspack format is no longer supported: delete the old HTTP lockfile and content cache, rebuild with experiments.buildHttp.frozen: false, then review and commit the regenerated files before re-enabling frozen builds. See #16656.
Rspack now tracks member usage through destructured dynamic-import namespaces, allowing unused nested exports to be removed more precisely. This covers awaited imports, destructured .then() parameters, and Promise.all() results. See #16574.
Projects with many import() expressions targeting the same module avoid repeated chunk-group scans during HMR-enabled compilation. Rspack now caches loading-chunk lookups and reuses sibling chunk lists, addressing a compilation bottleneck that grew rapidly with the number of imports. See #16674.
Rspack now shares loader cache results between compilers in the same process. For example, in an SSR build, the client and server compilers can reuse loader transformations for shared source files, avoiding repeated work. Compilers can share results when using memory cache or the same persistent cache directory. See #16558.
- fix!: align HTTP module lockfiles with webpack by @SyMind in https://github.com/web-infra-dev/rspack/pull/16656
- feat(ids): support salt for deterministic chunk and compact-hashed ids by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/16537
- feat(tree-shaking): narrow destructured dynamic import namespaces by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/16574
- feat(externals): support interop hints for object externals by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/16529
- perf(limit-chunk-count): keep chunk combinations in an ordered set by @guru-irl in https://github.com/web-infra-dev/rspack/pull/16466
- perf: reduce chunk filename runtime size by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16598
- perf: reduce dynamic chunk filename runtime size by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16602
- perf(core): avoid serializing hook register arrays by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16628
- perf(stats): avoid splitting loader chains when grouping modules by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16631
- perf(stats): reuse split error details when truncating output by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16632
- perf(stats): count diagnostic details without intermediate arrays by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16630
- perf(core): lazily cache log type bit flags by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16629
- perf(core): streamline runtime global reverse mapping by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16634
- perf(stats): avoid splitting hierarchical hook names by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16635
- perf(sri): avoid unnecessary path separator conversions by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16636
- perf(sri): avoid allocating hash match results by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16637
- perf(sri): avoid copying asset keys before lookup by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16638
- perf(core): avoid splitting stacks to remove loader frames by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16642
- perf(stats): collect printable contents in one pass by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16643
- perf(hmr): avoid cubic HMR loading chunk resolution by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/16674
- fix: isolate module build cache sessions by graph by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/16540
- fix(resolver): respect tsconfig extends array precedence by @stormslowly in https://github.com/web-infra-dev/rspack/pull/16554
- fix(split-chunks): prune source types below minSizeReduction by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/16573
- fix: preserve Rule.as path delimiters and portable resources by @intellild in https://github.com/web-infra-dev/rspack/pull/16551
- fix: initialize build-time runtime globals in both runtime modes by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/16577
- fix(cache): serialize shared consumption dependencies by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/16561
- fix(cache): filter source map assets before lookup by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/16562
- fix(cache): normalize context resource dependency paths by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/16563
- fix(cache): reuse restored remote modules by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/16565
- fix(lazy-compilation): reject imports after HMR failure by @ScriptedAlchemy in https://github.com/web-infra-dev/rspack/pull/15947
- fix(ci): preserve clang during Linux disk cleanup by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/16588
- fix: mark modules with a top-level await using as async by @hai-x in https://github.com/web-infra-dev/rspack/pull/16442
- fix(split-chunks): keep named groups that narrowing would remove by @guru-irl in https://github.com/web-infra-dev/rspack/pull/16487
- fix: handle HTTP module response stream errors by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/16233
- fix(sri): carry lazy hashes in the chunk that makes the import() call by @sd2k in https://github.com/web-infra-dev/rspack/pull/16420
- fix(css-extract): find stylesheets whose filename has a query by @ebidel in https://github.com/web-infra-dev/rspack/pull/16346
- fix(cache): track DefinePlugin definition keys by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/16589
- fix(tree-shaking): avoid receivers for destructured dynamic import calls by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/16593
- fix: preserve target major versions above 255 by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16601
- fix(cache): reuse loader output after a caught import cycle by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/16583
- fix(cache): snapshot invalid Windows missing paths by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/16584
- fix(cache): share loader cache across modes and SSR compilers by @intellild in https://github.com/web-infra-dev/rspack/pull/16558
- fix: finalize finishMake module rebuilds and artifacts by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/16580
- fix: resolve import() of self-accepting modules to their latest evaluation by @hai-x in https://github.com/web-infra-dev/rspack/pull/16595
- fix(cache): cache module-not-found resolution results by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/16560
- fix(javascript): preserve outer ASI boundaries across nested statements by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/16613
- fix: annotate pure module initializers in ESM output by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/16605
- fix(cache): keep lazy barrel state per compilation by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/16609
- fix: cache extracted CSS modules with fresh input validation by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/16618
- fix: count reused metadata for empty child compilers by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/16620
- fix(cache): include loader configuration and versions in etags by @intellild in https://github.com/web-infra-dev/rspack/pull/16591
- fix(tree-shaking): resolve CommonJS default re-export to module.exports by @hai-x in https://github.com/web-infra-dev/rspack/pull/16639
- fix(binding): preserve normal module createData context by @SyMind in https://github.com/web-infra-dev/rspack/pull/16657
- fix(javascript): keep shorthand property keys when replacing identifiers by @hai-x in https://github.com/web-infra-dev/rspack/pull/16627
- fix(css): respect devtool for embedded source maps by @intellild in https://github.com/web-infra-dev/rspack/pull/16655
- fix(css): omit unused JavaScript modules for CSS URL assets by @intellild in https://github.com/web-infra-dev/rspack/pull/16654
- fix(swc-loader): migrate box patterns to deref patterns by @intellild in https://github.com/web-infra-dev/rspack/pull/16667
- fix(cache): invalidate newCache when configured build dependencies change by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/16660
- fix(core): preserve factorization metadata for reused entries by @SyMind in https://github.com/web-infra-dev/rspack/pull/16668
- fix(resolver): make preferAbsolute try the absolute path first by @cezaraugusto in https://github.com/web-infra-dev/rspack/pull/16617
- fix(core): clean up loader error stacks by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16641
- refactor(hmr): use the chunk content hash as its hmr version by @hai-x in https://github.com/web-infra-dev/rspack/pull/16585
- refactor(core): simplify property checks and iteration by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16644
- docs: clarify module rule as usage by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16564
- docs: add MDX example for reusing compilation rules by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16570
- docs: clarify rule as asset minification behavior by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16572
- docs: enable ESM output for website by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16600
- docs: fix the default devtool module filename templates by @ragib-mrb in https://github.com/web-infra-dev/rspack/pull/16658
- docs(resolver): exclude allocative from docs.rs features by @intellild in https://github.com/web-infra-dev/rspack/pull/16669
- test(cache): run cache checks before fixture cleanup by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/16566
- chore(deps): update dependency table to v6.10.1 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16499
- chore(deps): update dependency webpack-sources to v3.7.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16500
- chore(deps): update rust crate html-escape to 0.3.1 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16501
- test: wait for activation instead of a fixed delay in hot cases by @hai-x in https://github.com/web-infra-dev/rspack/pull/16596
- chore(deps): update patch npm dependencies by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16606
- chore(deps): update patch crates by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16369
- chore(deps): update dependency enhanced-resolve to v5.27.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16611
- chore(deps): update dependency commander to v15.1.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16610
- chore(deps): update swc by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16607
- test(cli): propagate watch startup errors by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16541
- test: expand persistent cache compatibility coverage by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/16614
- test: include cached assets in filename assertions by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/16619
- test: await child compilation in config fixtures by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/16621
- test: validate circular warnings cache reuse separately from errors by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/16623
- test: mark compilation-mutating loader as non-cacheable by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/16624
- test: validate issuer stats across persistent cache builds by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/16625
- ci(windows): fix flaky proc-macro DLL load via read-after-link by @stormslowly in https://github.com/web-infra-dev/rspack/pull/16648
- chore(deps): update swc-next to 0.7.0 by @CPunisher in https://github.com/web-infra-dev/rspack/pull/16650
- @ebidel made their first contribution in https://github.com/web-infra-dev/rspack/pull/16346
- @ragib-mrb made their first contribution in https://github.com/web-infra-dev/rspack/pull/16658
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v2.3.2...v2.3.3
v2.3.2
HMR now handles code-splitting changes more reliably, reducing unnecessary full-page reloads when chunks are added or rearranged. Newly required chunks are loaded before HMR accept callbacks run, and changes to async chunk dependencies no longer cause unnecessary update propagation.
The experimental rule.as option lets a matched resource use a different path for subsequent rule matching while preserving the original resource for file reading and loaders. For example, as: '[resource-path].txt' lets later .txt rules also process example.source.js. (#15917)
// rspack.config.mjs
export default {
module: {
rules: [
{
test: /\.source\.js$/,
type: 'asset/source',
as: '[resource-path].txt',
},
{ test: /\.txt$/, use: './text-loader.js' },
],
},
};
Here, example.source.js matches the later .txt rule as example.source.js.txt; text-loader.js still receives the contents of the original file.
Rspack can now bypass side-effect-free modules that only forward exports with export *, connecting directly to the underlying module.
Mark the package as side-effect-free in package.json:
{
"sideEffects": false
}
// src/value.js
export const value = 42;
// src/passthrough.js
export * from './value.js';
// src/index.js
export * from './passthrough.js';
With optimization.sideEffects enabled (the default in production), the export * connection from index.js can now go directly to value.js, skipping passthrough.js.
- feat(sri): support hashLoading: "lazy" in SubresourceIntegrityPlugin by @sd2k in https://github.com/web-infra-dev/rspack/pull/16374
- feat: add output.environment.topLevelAwait and await async ESM entries by @hai-x in https://github.com/web-infra-dev/rspack/pull/16386
- feat: support externals.byLayer by @stormslowly in https://github.com/web-infra-dev/rspack/pull/16307
- feat(css): Add opt-in runtime public paths for injected styles by @scttcper in https://github.com/web-infra-dev/rspack/pull/15705
- feat: add experimental rule.as by @intellild in https://github.com/web-infra-dev/rspack/pull/15917
- feat(tree-shaking): prune dynamic imports from unused exports by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/15449
- feat: skip side-effect-free
export *passthrough modules by @hai-x in https://github.com/web-infra-dev/rspack/pull/16472
- perf: use memchr SIMD scans and drop winnow by @intellild in https://github.com/web-infra-dev/rspack/pull/16424
- perf(sources): box the replacement name by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/15878
- perf: lazily create existing loader dependency sets by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16449
- perf: lazily materialize package.json metadata by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/16469
- perf(core): trim runtime spec sets on creation by @guru-irl in https://github.com/web-infra-dev/rspack/pull/16478
- perf(sources): share source map text with BytesStr by @SyMind in https://github.com/web-infra-dev/rspack/pull/16468
- perf(core): free the previous compilation's assets during a rebuild by @guru-irl in https://github.com/web-infra-dev/rspack/pull/16479
- perf(sources): compact noSources maps only when retained by @SyMind in https://github.com/web-infra-dev/rspack/pull/16536
- perf: reduce source map memory during asset generation and content hashing by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/16470
- fix(core): keep property access when inlining an export reached through a re-export by @flex-mookeun in https://github.com/web-infra-dev/rspack/pull/16310
- fix(core): keep the full hash stable across rebuilds without HMR by @guru-irl in https://github.com/web-infra-dev/rspack/pull/16280
- fix(runtime): avoid coercion collisions in chunk ID matchers by @intellild in https://github.com/web-infra-dev/rspack/pull/16423
- fix(devtool): map bootstrap and startup sources by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/16426
- fix: keep receiver exports for calls on unprovided members by @hai-x in https://github.com/web-infra-dev/rspack/pull/16418
- fix: restore side-effect imports after package metadata changes by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/16435
- fix(cache): reuse completed builds for external and generated modules by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/16429
- fix(core): fold chunk hashes into the full hash in chunk id order by @guru-irl in https://github.com/web-infra-dev/rspack/pull/16293
- fix: keep initializers of unused top-level using declarations by @hai-x in https://github.com/web-infra-dev/rspack/pull/16437
- fix(watcher): preserve concrete paths in native watcher events by @stormslowly in https://github.com/web-infra-dev/rspack/pull/16411
- fix(stats): report each runtime module's own size and chunks by @guru-irl in https://github.com/web-infra-dev/rspack/pull/16076
- fix(hmr): complete new entry chunk dependencies by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/15955
- fix: isolate entry declarations from runtime tables by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/16497
- fix: preserve module namespace key order for mixed exports by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/16491
- fix(watcher): separate filesystem accuracy from cache by @stormslowly in https://github.com/web-infra-dev/rspack/pull/16512
- fix(watcher): align rename events with watchpack by @stormslowly in https://github.com/web-infra-dev/rspack/pull/16460
- fix: skip cyclic star re-exports when resolving a binding by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/16496
- fix: preserve lone surrogates during constant evaluation by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/16494
- fix(watcher): pass SystemTime to mtime_accuracy by @hai-x in https://github.com/web-infra-dev/rspack/pull/16526
- fix(resolver): support UTF-8 BOM in tsconfig files by @stormslowly in https://github.com/web-infra-dev/rspack/pull/16518
- fix: evaluate
x in nsto true whenxis a re-exported namespace by @hai-x in https://github.com/web-infra-dev/rspack/pull/16509 - fix: preserve negative zero in exports and use JavaScript number strings in constant evaluation by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/16527
- fix(mf): keep the whole requiredVersion range in mf-manifest.json by @arnaud-zg in https://github.com/web-infra-dev/rspack/pull/16402
- fix(core): distinguish fatal module errors from loader diagnostics by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/16538
- fix(css): scope counter styles and implicit grid lines by @intellild in https://github.com/web-infra-dev/rspack/pull/16520
- fix(hmr): invalidate cached chunks when version tags change by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/16548
- fix(watcher): account for directory mtime accuracy by @stormslowly in https://github.com/web-infra-dev/rspack/pull/16531
- fix(mf): read provided shared fields directly in manifests by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/16533
- fix(resolver): report circular tsconfig extends instead of crashing by @stormslowly in https://github.com/web-infra-dev/rspack/pull/16513
- fix(hmr): load async groups through their last chunk by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/16328
- fix(resolver): reload PnP manifest from cached path by @stormslowly in https://github.com/web-infra-dev/rspack/pull/16543
- refactor(binding): rely on napi-rs for module retention by @SyMind in https://github.com/web-infra-dev/rspack/pull/16431
- refactor: remove unused exports_definitions hook from ConcatenatedModule by @hai-x in https://github.com/web-infra-dev/rspack/pull/16434
- refactor(binding): implement module classes in JavaScript by @SyMind in https://github.com/web-infra-dev/rspack/pull/16436
- docs: clarify split chunks sizing and cache group examples by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16409
- docs: clarify split chunks counting and troubleshooting by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16412
- docs: explain entry dependencies and shared runtime by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16413
- docs: standardize Rspack runtime terminology by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16427
- docs: clarify Lightning CSS minimizer options and examples by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16417
- docs: add Nitro to community integrations by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16428
- docs: introduce rspack-chain for configuration customization by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16430
- docs: illustrate runtime chunk initialization by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16414
- docs: add compilation dependency tracking examples by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16415
- docs: add entrypoints manifest example by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16416
- docs: refresh Rspack and Rstack introduction by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16455
- docs: clarify stats asset metadata by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16461
- docs: redirect moved pages on Cloudflare Pages by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16465
- docs(website): simplify Rspress configuration by @SoonIter in https://github.com/web-infra-dev/rspack/pull/16522
- docs: expand community plugin list by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16524
- docs: expand community loader list by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16528
- docs: clarify chunk ID assignment when chunkIds is false by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/16523
- docs: use a WebMCP prompt in the Rspack 2.3 announcement by @SoonIter in https://github.com/web-infra-dev/rspack/pull/16553
- test(cache): validate persistent cache hits in config and normal cases by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/16397
- test: exclude external re-export case from cache reuse checks by @SyMind in https://github.com/web-infra-dev/rspack/pull/16425
- ci: use trunk baseline for branch-based PR stacks by @ScriptedAlchemy in https://github.com/web-infra-dev/rspack/pull/16201
- chore(deps): update napi by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16230
- chore(deps): update dependency tiny-emitter to v2.1.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16440
- test: exclude container tree shaking for configCases cache test by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/16450
- chore(deps): upgrade SWC crates and browserslist-rs by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16458
- chore(deps): update dependency rsbuild-plugin-google-analytics to v1.1.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16438
- chore(deps): update dependency coffee-loader to v5 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16441
- chore(deps): update patch npm dependencies by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16476
- chore(deps): update dependency mermaid to ^12.3.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16480
- chore: use Rspress built-in Shiki transformers by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16489
- chore(deps): update dependency playwright to v1.65.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16481
- chore(ci): use mini runner for ecosystem ci dispatcher by @stormslowly in https://github.com/web-infra-dev/rspack/pull/14471
- test(watcher): stabilize nested context removal case by @stormslowly in https://github.com/web-infra-dev/rspack/pull/16519
- chore(deps): update Rslib to 1.0.6 by @SoonIter in https://github.com/web-infra-dev/rspack/pull/16471
- chore(deps): update dependency sass-loader to ^17.1.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16498
- chore(deps): update rust crate tokio to 1.54.1 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16502
- chore(deps): update dependency jsdom to v31 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16504
- chore(deps): bump swc-next to 0.6.1 by @CPunisher in https://github.com/web-infra-dev/rspack/pull/16525
- chore: bump
swc_corefrom 84.0.1 to 84.0.2 by @CPunisher in https://github.com/web-infra-dev/rspack/pull/16547 - test(stats): cover shared issuers in child compilations by @stormslowly in https://github.com/web-infra-dev/rspack/pull/16456
- chore(deps): update dependency execa to v10 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16503
- test: wait for both watchers to finish the initial batch in rename cases by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/16530
- test(watcher): validate burst aggregation against event timing by @stormslowly in https://github.com/web-infra-dev/rspack/pull/16544
- test: stabilize cache restoration watch test by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/16555
- @sd2k made their first contribution in https://github.com/web-infra-dev/rspack/pull/16374
- @scttcper made their first contribution in https://github.com/web-infra-dev/rspack/pull/15705
- @arnaud-zg made their first contribution in https://github.com/web-infra-dev/rspack/pull/16402
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v2.3.1...v2.3.2
v2.3.1
- feat(runtime): support incremental runtime module updates by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/16326
- perf(stats): disable cacheInfo by default by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16356
- 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
- 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(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
- 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
- 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
- @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
v2.3.0
🎉 See Announcing Rspack 2.3 for more details.
- feat: rename loader filter.code to codeFilter by @SyMind in https://github.com/web-infra-dev/rspack/pull/16184
- feat: integrate allocative snapshots and profiling skill into Rspack by @intellild in https://github.com/web-infra-dev/rspack/pull/16046
- feat: support module.parser.javascript.dynamicUrl by @HashemKhalifa in https://github.com/web-infra-dev/rspack/pull/15933
- feat(watcher): expose watchpack times API on native and node watch file systems by @stormslowly in https://github.com/web-infra-dev/rspack/pull/15754
- feat(javascript): migrate parser to SWC Next by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/16089
- feat: add loader codeFilter prefilter by @SyMind in https://github.com/web-infra-dev/rspack/pull/16073
- feat(create-rspack): display version in startup banner by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16167
- feat(rstest): add origin-aware import.meta.resolve hook by @9aoy in https://github.com/web-infra-dev/rspack/pull/16275
- feat(watch): support mixed ignored patterns by @Perfecto23 in https://github.com/web-infra-dev/rspack/pull/13795
- feat: support es2026 target by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16311
- feat(cache): expose newCache statistics in Stats JSON by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/16282
- perf(size): box hot async entry futures to shrink binding size by @stormslowly in https://github.com/web-infra-dev/rspack/pull/16085
- perf(sources): avoid retaining serialized source maps by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/16072
- perf(loader): schedule loader chains as execution units by @intellild in https://github.com/web-infra-dev/rspack/pull/15401
- perf(loader-runner): read process.env.WASM once by @guru-irl in https://github.com/web-infra-dev/rspack/pull/16127
- perf: avoid creating untouched loader buildInfo by @guru-irl in https://github.com/web-infra-dev/rspack/pull/16077
- perf(resolver): prefer package directories in node_modules by @stormslowly in https://github.com/web-infra-dev/rspack/pull/16154
- perf(watch): lazily convert native watcher time info by @stormslowly in https://github.com/web-infra-dev/rspack/pull/16187
- perf(watcher): reuse directory analysis for unchanged subscriptions by @stormslowly in https://github.com/web-infra-dev/rspack/pull/16180
- perf(core): emit ESM export value descriptors when safe by @patrickkunka in https://github.com/web-infra-dev/rspack/pull/15936
- perf: reuse residual SplitChunks candidates in place by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/16081
- perf(core): scan inline named exports linearly by @kdy1 in https://github.com/web-infra-dev/rspack/pull/16224
- perf(core): skip substring search when path has no fragment marker by @kdy1 in https://github.com/web-infra-dev/rspack/pull/16223
- perf(split-chunks): match built-in cache group conditions once per compilation by @guru-irl in https://github.com/web-infra-dev/rspack/pull/16129
- perf(sources): use slice iteration when parsing string arrays by @kdy1 in https://github.com/web-infra-dev/rspack/pull/16283
- perf(sources): read source map fields from the JSON tape by @kdy1 in https://github.com/web-infra-dev/rspack/pull/16297
- perf: avoid VLQ accumulation for single-sextet mapping values by @kdy1 in https://github.com/web-infra-dev/rspack/pull/16298
- perf(binding): preserve native source graphs during asset updates by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/16207
- fix: skip build dependency collection after fatal compilation errors by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/16074
- fix(resolver): resolve tsconfig
extendsthrough the real path by @orgads in https://github.com/web-infra-dev/rspack/pull/15718 - fix(split-chunks): deduplicate remaining copies in named groups by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/16075
- fix(css): align CSS Modules behavior with webpack css-loader fixtures by @intellild in https://github.com/web-infra-dev/rspack/pull/15816
- fix(tracing): convert JavaScript trace nanoseconds to microseconds by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/16103
- fix: stabilize module rendering order across platforms by @hai-x in https://github.com/web-infra-dev/rspack/pull/16100
- fix(binding): avoid shared property leak warnings on process exit by @SoonIter in https://github.com/web-infra-dev/rspack/pull/16117
- fix: use the module exports argument for the AMD exports dependency by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/16122
- fix: respect module arguments in AMD code generation by @hai-x in https://github.com/web-infra-dev/rspack/pull/16148
- fix(mf): make deterministic IDs independent of project paths by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/16152
- fix(watch): make node watch time info entries deterministic by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/16126
- fix(javascript): reuse parser source type by @CPunisher in https://github.com/web-infra-dev/rspack/pull/16102
- fix: link import bindings inside define callbacks by @hai-x in https://github.com/web-infra-dev/rspack/pull/16159
- fix(javascript): respect block function scope by @CPunisher in https://github.com/web-infra-dev/rspack/pull/16162
- fix(css): localize type-first nested selectors by @intellild in https://github.com/web-infra-dev/rspack/pull/16011
- fix(javascript): preserve legacy parser behavior by @CPunisher in https://github.com/web-infra-dev/rspack/pull/16164
- fix(lazy-compilation): avoid barrel reloads on activation by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/16026
- fix(split-chunks): support minRemainingSize by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/15594
- fix: release updated allocative crates to resolve napi feature mismatch by @intellild in https://github.com/web-infra-dev/rspack/pull/16171
- fix(HMR): correct hot updated chunk path resolution in Node.js HMR by @hai-x in https://github.com/web-infra-dev/rspack/pull/16174
- fix(release): synchronize workspace versions and CLI peer dependencies by @intellild in https://github.com/web-infra-dev/rspack/pull/16181
- fix: inherit splitChunks request limits in cache groups by @hai-x in https://github.com/web-infra-dev/rspack/pull/16191
- fix(css): calculate CSS module hashes from graph dependencies by @intellild in https://github.com/web-infra-dev/rspack/pull/16120
- fix(core): preserve shorthand assignment keys in concatenation by @dajiaohuang in https://github.com/web-infra-dev/rspack/pull/16205
- fix(cache): unify snapshot path matching and package lookup by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/16194
- fix(javascript): correct loose equality evaluation for nullish values by @NaamuKim in https://github.com/web-infra-dev/rspack/pull/16141
- fix(lazy-compilation): avoid reposting active ids on dispose by @dajiaohuang in https://github.com/web-infra-dev/rspack/pull/16200
- fix: allocative crate package names by @intellild in https://github.com/web-infra-dev/rspack/pull/16212
- fix(mf): support consumes runtime without chunk loading by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/16209
- fix(mf): normalize single-item container share scopes by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16251
- fix(css): localize animation names before !important by @dajiaohuang in https://github.com/web-infra-dev/rspack/pull/16204
- fix(watcher): keep watching when unwatching a stale path fails by @sarankumar1325 in https://github.com/web-infra-dev/rspack/pull/16199
- fix(sri): generate integrity hashes for chunks that only contain extracted css by @ojj1123 in https://github.com/web-infra-dev/rspack/pull/15711
- fix: inherit sideEffects through nested package metadata by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/15336
- fix(types): narrow EvalSourceMapDevToolPlugin options by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16265
- fix(css): keep media attribute of hot replaced stylesheets by @CyberAP in https://github.com/web-infra-dev/rspack/pull/16214
- fix(rsc): collect client components from all entry dependencies by @sarankumar1325 in https://github.com/web-infra-dev/rspack/pull/16254
- fix(watcher): invalidate on native watcher removals by @guru-irl in https://github.com/web-infra-dev/rspack/pull/16284
- fix(watcher): report a removed file once when it stays a dependency by @guru-irl in https://github.com/web-infra-dev/rspack/pull/16305
- fix: raise inherited SWC target cap to ES2024 by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16314
- fix(css): preserve stylesheet attributes and state during HMR by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16287
- fix: update named chunks when merging or removing chunks by @hai-x in https://github.com/web-infra-dev/rspack/pull/16312
- fix(watcher): preserve native event delivery while JavaScript is blocked by @ScriptedAlchemy in https://github.com/web-infra-dev/rspack/pull/16106
- fix: include module_id in chunk hashing by @hai-x in https://github.com/web-infra-dev/rspack/pull/16168
- fix(ci): update Dylint to 6.3.0 by @intellild in https://github.com/web-infra-dev/rspack/pull/16332
- refactor(binding): retain DependencyRef in JavaScript wrappers by @SyMind in https://github.com/web-infra-dev/rspack/pull/16061
- refactor(sources): use a source-wide UTF-16 index and remove object pool by @SyMind in https://github.com/web-infra-dev/rspack/pull/16083
- refactor(javascript): remove redundant ESTree AST wrappers by @CPunisher in https://github.com/web-infra-dev/rspack/pull/16098
- refactor: reuse current module in dependency templates by @hai-x in https://github.com/web-infra-dev/rspack/pull/16149
- refactor(javascript): emit mangled destructuring keys as strings by @CPunisher in https://github.com/web-infra-dev/rspack/pull/16147
- refactor(cache): reuse persistent cache options for newCache by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/16160
- refactor(css): share CSS module graph traversal by @intellild in https://github.com/web-infra-dev/rspack/pull/16119
- refactor(css): query placeholders from compiled templates by @intellild in https://github.com/web-infra-dev/rspack/pull/16169
- refactor: remove unused __rspack_esm_id export from module chunks by @hai-x in https://github.com/web-infra-dev/rspack/pull/16193
- refactor(binding): use registered symbols across Rust and JS by @SyMind in https://github.com/web-infra-dev/rspack/pull/16210
- refactor: remove dead code and unused parameters by @hai-x in https://github.com/web-infra-dev/rspack/pull/16217
- refactor: reuse modules and connections already in hand by @hai-x in https://github.com/web-infra-dev/rspack/pull/16197
- refactor: use SIMD UTF-16 length for dependency locations by @SyMind in https://github.com/web-infra-dev/rspack/pull/15585
- refactor: reuse data already in hand instead of looking it up again by @hai-x in https://github.com/web-infra-dev/rspack/pull/16218
- docs: update renamed crates in project architecture by @Jarvis636431 in https://github.com/web-infra-dev/rspack/pull/16087
- docs: add parallel loader section to loader guide by @intellild in https://github.com/web-infra-dev/rspack/pull/16092
- docs: add memory diagnostics guide by @intellild in https://github.com/web-infra-dev/rspack/pull/16080
- docs: explain hot update manifest fields by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16114
- docs: clarify Rsdoctor capabilities and simplify setup guide by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16125
- docs(resolve): explain resolve.tsConfig.references matching rules by @stormslowly in https://github.com/web-infra-dev/rspack/pull/16099
- docs: clarify Rsbuild and Rspack CLI in quick start by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16155
- docs: clarify loader code filters and add examples by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16182
- docs: clarify how to check tree shaking inputs by @MuslumYilmaz in https://github.com/web-infra-dev/rspack/pull/15830
- docs: clarify how loaders affect tree shaking by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16213
- docs: clarify project setup with Rsbuild, Rslib, and Rspack CLI by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16241
- docs: correct EvalSourceMapDevToolPlugin filters by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16243
- docs: clarify fully dynamic import behavior by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16245
- docs: clarify optimization defaults in none mode by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16244
- docs: correct HMR error callback information by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16246
- docs: clarify stats loggingDebug filtering by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16250
- docs: correct stats sorting defaults by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16247
- docs: correct stats detail defaults by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16248
- docs: distinguish stats JSON and text defaults by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16249
- docs: invite @hai-x to Rspack core team by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16264
- docs: clarify CSS Modules class names for SSR by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16257
- docs: clarify how rule conditions combine by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16260
- docs: explain HMR update propagation by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16261
- docs: explain transpiling modern dependencies by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16256
- docs: document compilation module graph queries by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16259
- docs: explain passing loader data to plugins by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16258
- docs: explain runtime public paths inside workers by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16262
- docs: document experiments.newCache by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/16272
- docs: clarify asset processing before emit by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16269
- docs: clarify eager dynamic import behavior by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16267
- docs: correct asset module filenames and output conditions by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16266
- docs: add runtime issues guide for chunk loading errors by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16270
- docs: demonstrate HMR cleanup and state preservation by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16271
- docs: improve memory analysis and contribution guides by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16285
- docs: group built-in loaders in a dedicated section by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16286
- docs: correct publishing step in releasing guide by @hai-x in https://github.com/web-infra-dev/rspack/pull/16290
- docs: clarify HMR check and automatic application by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16299
- docs: clarify HMR invalidation and propagation by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16300
- docs: troubleshoot automatic public path failures by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16301
- docs: explain chunk load errors after HTTP success by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16302
- docs: fix HMR examples and state descriptions by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16303
- docs: clarify CSS entries and external resources by @intellild in https://github.com/web-infra-dev/rspack/pull/16306
- docs: use Tailwind CSS webpack loader for v4 by @intellild in https://github.com/web-infra-dev/rspack/pull/16309
- docs: add community loaders to the ecosystem page by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16319
- docs: add community plugins to the ecosystem page by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16320
- docs: add NestJS to the ecosystem page by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16321
- docs: add Rstack CLI to toolchain listings by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16322
- chore(deps): update patch npm dependencies by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16029
- chore(deps): upgrade swc-next to 0.2.4 by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/16094
- chore(deps): upgrade Rspress to 2.1.0-beta.1 by @SoonIter in https://github.com/web-infra-dev/rspack/pull/16104
- chore(deps): update dependency acorn to ^8.19.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16030
- chore(docs): update Rsdoctor 2.0 usage guides by @yifancong in https://github.com/web-infra-dev/rspack/pull/16090
- chore(deps): upgrade swc-next to 0.3.0 by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/16113
- chore(deps): update dependency playwright to v1.64.1 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16031
- chore(deps): update swc by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16131
- chore(deps): update patch npm dependencies by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16130
- chore(deps): update dependency ts-checker-rspack-plugin to ^1.7.1 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16137
- chore(deps): update dependency @swc/plugin-remove-console to v17 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16139
- chore(deps): update dependency happy-dom to v21 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16140
- chore(deps): update dependency cac to ^7.1.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16135
- chore(deps): update dependency mermaid to ^12.2.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16136
- chore(deps): update dependency watchpack to v2.6.1 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16138
- chore(deps): upgrade SWC Next to 0.3.1 by @CPunisher in https://github.com/web-infra-dev/rspack/pull/16151
- Revert "fix(mf): make deterministic IDs independent of project paths" by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/16161
- test: stabilize lazy barrel cache restoration by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/16173
- chore(deps): update dependency @ast-grep/napi to ^0.51.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16227
- chore(deps): update rust crate either to 1.19.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16234
- chore(deps): update dependency cspell to ^10.4.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16229
- chore(deps): update dependency core-js to v3.51.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16228
- chore(deps): update rust crate wasmtime to v36.0.19 [security] by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16238
- chore(deps): update rust crate hashlink to 0.12.2 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16235
- chore(deps): update patch npm dependencies by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16226
- chore(deps): update rust crate ctor to 0.13.1 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16232
- Revert "fix: inherit splitChunks request limits in cache group" by @hai-x in https://github.com/web-infra-dev/rspack/pull/16273
- chore: mark allocative driver as private by @intellild in https://github.com/web-infra-dev/rspack/pull/16308
- chore(deps): update patch crates by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16225
- chore: refine webpack gap tracker workflow by @intellild in https://github.com/web-infra-dev/rspack/pull/15362
- @orgads made their first contribution in https://github.com/web-infra-dev/rspack/pull/15718
- @Jarvis636431 made their first contribution in https://github.com/web-infra-dev/rspack/pull/16087
- @dajiaohuang made their first contribution in https://github.com/web-infra-dev/rspack/pull/16205
- @MuslumYilmaz made their first contribution in https://github.com/web-infra-dev/rspack/pull/15830
- @NaamuKim made their first contribution in https://github.com/web-infra-dev/rspack/pull/16141
- @patrickkunka made their first contribution in https://github.com/web-infra-dev/rspack/pull/15936
- @sarankumar1325 made their first contribution in https://github.com/web-infra-dev/rspack/pull/16199
- @ojj1123 made their first contribution in https://github.com/web-infra-dev/rspack/pull/15711
- @CyberAP made their first contribution in https://github.com/web-infra-dev/rspack/pull/16214
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v2.2.9...v2.3.0
v2.3.0-rc.0
- perf(watch): lazily convert native watcher time info by @stormslowly in https://github.com/web-infra-dev/rspack/pull/16187
- perf(watcher): reuse directory analysis for unchanged subscriptions by @stormslowly in https://github.com/web-infra-dev/rspack/pull/16180
- perf(core): emit ESM export value descriptors when safe by @patrickkunka in https://github.com/web-infra-dev/rspack/pull/15936
- perf: reuse residual SplitChunks candidates in place by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/16081
- perf(core): scan inline named exports linearly by @kdy1 in https://github.com/web-infra-dev/rspack/pull/16224
- perf(core): skip substring search when path has no fragment marker by @kdy1 in https://github.com/web-infra-dev/rspack/pull/16223
- perf(split-chunks): match built-in cache group conditions once per compilation by @guru-irl in https://github.com/web-infra-dev/rspack/pull/16129
- fix(core): preserve shorthand assignment keys in concatenation by @dajiaohuang in https://github.com/web-infra-dev/rspack/pull/16205
- fix(cache): unify snapshot path matching and package lookup by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/16194
- fix(javascript): correct loose equality evaluation for nullish values by @NaamuKim in https://github.com/web-infra-dev/rspack/pull/16141
- fix(lazy-compilation): avoid reposting active ids on dispose by @dajiaohuang in https://github.com/web-infra-dev/rspack/pull/16200
- fix: allocative crate package names by @intellild in https://github.com/web-infra-dev/rspack/pull/16212
- fix(mf): support consumes runtime without chunk loading by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/16209
- fix(mf): normalize single-item container share scopes by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16251
- fix(css): localize animation names before !important by @dajiaohuang in https://github.com/web-infra-dev/rspack/pull/16204
- fix(watcher): keep watching when unwatching a stale path fails by @sarankumar1325 in https://github.com/web-infra-dev/rspack/pull/16199
- fix(sri): generate integrity hashes for chunks that only contain extracted css by @ojj1123 in https://github.com/web-infra-dev/rspack/pull/15711
- refactor: remove unused __rspack_esm_id export from module chunks by @hai-x in https://github.com/web-infra-dev/rspack/pull/16193
- refactor(binding): use registered symbols across Rust and JS by @SyMind in https://github.com/web-infra-dev/rspack/pull/16210
- docs: clarify how to check tree shaking inputs by @MuslumYilmaz in https://github.com/web-infra-dev/rspack/pull/15830
- docs: clarify how loaders affect tree shaking by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16213
- docs: clarify project setup with Rsbuild, Rslib, and Rspack CLI by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16241
- docs: correct EvalSourceMapDevToolPlugin filters by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16243
- docs: clarify fully dynamic import behavior by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16245
- docs: clarify optimization defaults in none mode by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16244
- docs: correct HMR error callback information by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16246
- docs: clarify stats loggingDebug filtering by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16250
- docs: correct stats sorting defaults by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16247
- docs: correct stats detail defaults by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16248
- docs: distinguish stats JSON and text defaults by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16249
- docs: invite @hai-x to Rspack core team by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16264
- docs: clarify CSS Modules class names for SSR by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16257
- docs: clarify how rule conditions combine by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16260
- docs: explain HMR update propagation by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16261
- docs: explain transpiling modern dependencies by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16256
- docs: document compilation module graph queries by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16259
- docs: explain passing loader data to plugins by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16258
- docs: explain runtime public paths inside workers by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16262
- docs: document experiments.newCache by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/16272
- chore(deps): update dependency @ast-grep/napi to ^0.51.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16227
- chore(deps): update rust crate either to 1.19.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16234
- chore(deps): update dependency cspell to ^10.4.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16229
- chore(deps): update dependency core-js to v3.51.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16228
- chore(deps): update rust crate wasmtime to v36.0.19 [security] by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16238
- chore(deps): update rust crate hashlink to 0.12.2 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16235
- chore(deps): update patch npm dependencies by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16226
- chore(deps): update rust crate ctor to 0.13.1 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16232
- @dajiaohuang made their first contribution in https://github.com/web-infra-dev/rspack/pull/16205
- @MuslumYilmaz made their first contribution in https://github.com/web-infra-dev/rspack/pull/15830
- @NaamuKim made their first contribution in https://github.com/web-infra-dev/rspack/pull/16141
- @patrickkunka made their first contribution in https://github.com/web-infra-dev/rspack/pull/15936
- @ojj1123 made their first contribution in https://github.com/web-infra-dev/rspack/pull/15711
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v2.3.0-beta.1...v2.3.0-rc.0
v2.3.0-beta.1
Thefilter.code loader option (introduced in 2.3.0-beta.0) has been renamed tocodeFilter . If you are upgrading from 2.3.0-beta.0, replacefilter: { code: ... } withcodeFilter: ... in your loader config. No action is needed if you never usedfilter.code .
// 2.3.0-beta.0
{ loader: 'my-loader', filter: { code: 'customMacro(' } }
// 2.3.0-beta.1
{ loader: 'my-loader', codeFilter: 'customMacro(' }
- fix!: rename loader filter.code to codeFilter by @SyMind in https://github.com/web-infra-dev/rspack/pull/16184
- feat(create-rspack): display version in startup banner by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16167
- perf(resolver): prefer package directories in node_modules by @stormslowly in https://github.com/web-infra-dev/rspack/pull/16154
- fix: release updated allocative crates to resolve napi feature mismatch by @intellild in https://github.com/web-infra-dev/rspack/pull/16171
- fix(HMR): correct hot updated chunk path resolution in Node.js HMR by @hai-x in https://github.com/web-infra-dev/rspack/pull/16174
- fix(release): synchronize workspace versions and CLI peer dependencies by @intellild in https://github.com/web-infra-dev/rspack/pull/16181
- fix: inherit splitChunks request limits in cache groups by @hai-x in https://github.com/web-infra-dev/rspack/pull/16191
- fix(css): calculate CSS module hashes from graph dependencies by @intellild in https://github.com/web-infra-dev/rspack/pull/16120
- refactor(css): share CSS module graph traversal by @intellild in https://github.com/web-infra-dev/rspack/pull/16119
- refactor(css): query placeholders from compiled templates by @intellild in https://github.com/web-infra-dev/rspack/pull/16169
- docs: clarify loader code filters and add examples by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16182
- test: stabilize lazy barrel cache restoration by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/16173
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v2.3.0-beta.0...v2.3.0-beta.1
v2.3.0-beta.0
Rspack now uses SWC Next for JavaScript parsing. This beta also includes follow-up compatibility fixes for block-scoped functions, parser source types, and legacy parser behavior. See #16089.
The new loader filter.code option accepts a string or regular expression and checks the loader's current input before running its normal transform. Loaders can skip files that do not contain the syntax or markers they need to process, avoiding unnecessary transformation work. For example, a loader that transforms customMacro() calls can use filter: { code: 'customMacro(' } to skip inputs without that marker. Pitch functions are unaffected. See #16073.
Named cache groups now remove redundant module copies from source chunks connected to the same shared chunk, reducing duplicate code in affected builds. Rspack also supports splitChunks.minRemainingSize to avoid splits that leave undersized chunks, bringing JavaScript and extracted CSS output closer to webpack. For example, an affected asynchronous CSS import now retains its expected controls.css filename in production. See #16075 and #15594.
Native and Node watch file systems now expose watchpack-compatible getTimes(), getTimeInfoEntries(), and collectTimeInfoEntries() APIs. With experiments.nativeWatcher, compiler.fileTimestamps, compiler.contextTimestamps, and the watcher's getInfo() now return real timestamp entries, improving compatibility with plugins that rely on watch metadata, such as ts-loader, webpack-virtual-modules, and vue-loader. The Node watcher also merges time-info entries deterministically so directory timestamps are preserved regardless of dependency iteration order. See the WatchFileSystem API documentation, #15754 and #16126.
Rspack avoids retaining serialized source maps, reducing memory retained by source objects. Source handling also uses a source-wide UTF-16 index and removes its object pool. See #16072 and #16083.
New allocative-based memory diagnostics help identify which Rust data structures retain memory during builds and HMR updates. See the memory diagnostics guide to capture and analyze snapshots.
- feat: integrate allocative snapshots and profiling skill into Rspack by @intellild in https://github.com/web-infra-dev/rspack/pull/16046
- feat: support module.parser.javascript.dynamicUrl by @HashemKhalifa in https://github.com/web-infra-dev/rspack/pull/15933
- feat(watcher): expose watchpack times API on native and node watch file systems by @stormslowly in https://github.com/web-infra-dev/rspack/pull/15754
- feat(javascript): migrate parser to SWC Next by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/16089
- feat: add loader codeFilter prefilter by @SyMind in https://github.com/web-infra-dev/rspack/pull/16073
- perf(size): box hot async entry futures to shrink binding size by @stormslowly in https://github.com/web-infra-dev/rspack/pull/16085
- perf(sources): avoid retaining serialized source maps by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/16072
- perf(loader): schedule loader chains as execution units by @intellild in https://github.com/web-infra-dev/rspack/pull/15401
- perf(loader-runner): read process.env.WASM once by @guru-irl in https://github.com/web-infra-dev/rspack/pull/16127
- perf: avoid creating untouched loader buildInfo by @guru-irl in https://github.com/web-infra-dev/rspack/pull/16077
- fix: skip build dependency collection after fatal compilation errors by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/16074
- fix(resolver): resolve tsconfig
extendsthrough the real path by @orgads in https://github.com/web-infra-dev/rspack/pull/15718 - fix(split-chunks): deduplicate remaining copies in named groups by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/16075
- fix(css): align CSS Modules behavior with webpack css-loader fixtures by @intellild in https://github.com/web-infra-dev/rspack/pull/15816
- fix(tracing): convert JavaScript trace nanoseconds to microseconds by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/16103
- fix: stabilize module rendering order across platforms by @hai-x in https://github.com/web-infra-dev/rspack/pull/16100
- fix(binding): avoid shared property leak warnings on process exit by @SoonIter in https://github.com/web-infra-dev/rspack/pull/16117
- fix: use the module exports argument for the AMD exports dependency by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/16122
- fix: respect module arguments in AMD code generation by @hai-x in https://github.com/web-infra-dev/rspack/pull/16148
- fix(mf): make deterministic IDs independent of project paths by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/16152
- fix(watch): make node watch time info entries deterministic by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/16126
- fix(javascript): reuse parser source type by @CPunisher in https://github.com/web-infra-dev/rspack/pull/16102
- fix: link import bindings inside define callbacks by @hai-x in https://github.com/web-infra-dev/rspack/pull/16159
- fix(javascript): respect block function scope by @CPunisher in https://github.com/web-infra-dev/rspack/pull/16162
- fix(css): localize type-first nested selectors by @intellild in https://github.com/web-infra-dev/rspack/pull/16011
- fix(javascript): preserve legacy parser behavior by @CPunisher in https://github.com/web-infra-dev/rspack/pull/16164
- fix(lazy-compilation): avoid barrel reloads on activation by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/16026
- fix(split-chunks): support minRemainingSize by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/15594
- refactor(binding): retain DependencyRef in JavaScript wrappers by @SyMind in https://github.com/web-infra-dev/rspack/pull/16061
- refactor(sources): use a source-wide UTF-16 index and remove object pool by @SyMind in https://github.com/web-infra-dev/rspack/pull/16083
- refactor(javascript): remove redundant ESTree AST wrappers by @CPunisher in https://github.com/web-infra-dev/rspack/pull/16098
- refactor: reuse current module in dependency templates by @hai-x in https://github.com/web-infra-dev/rspack/pull/16149
- refactor(javascript): emit mangled destructuring keys as strings by @CPunisher in https://github.com/web-infra-dev/rspack/pull/16147
- refactor(cache): reuse persistent cache options for newCache by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/16160
- docs: update renamed crates in project architecture by @Jarvis636431 in https://github.com/web-infra-dev/rspack/pull/16087
- docs: add parallel loader section to loader guide by @intellild in https://github.com/web-infra-dev/rspack/pull/16092
- docs: add memory diagnostics guide by @intellild in https://github.com/web-infra-dev/rspack/pull/16080
- docs: explain hot update manifest fields by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16114
- docs: clarify Rsdoctor capabilities and simplify setup guide by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16125
- docs(resolve): explain resolve.tsConfig.references matching rules by @stormslowly in https://github.com/web-infra-dev/rspack/pull/16099
- docs: clarify Rsbuild and Rspack CLI in quick start by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16155
- chore(deps): update patch npm dependencies by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16029
- chore(deps): upgrade swc-next to 0.2.4 by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/16094
- chore(deps): upgrade Rspress to 2.1.0-beta.1 by @SoonIter in https://github.com/web-infra-dev/rspack/pull/16104
- chore(deps): update dependency acorn to ^8.19.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16030
- chore(docs): update Rsdoctor 2.0 usage guides by @yifancong in https://github.com/web-infra-dev/rspack/pull/16090
- chore(deps): upgrade swc-next to 0.3.0 by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/16113
- chore(deps): update dependency playwright to v1.64.1 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16031
- chore(deps): update swc by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16131
- chore(deps): update patch npm dependencies by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16130
- chore(deps): update dependency ts-checker-rspack-plugin to ^1.7.1 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16137
- chore(deps): update dependency @swc/plugin-remove-console to v17 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16139
- chore(deps): update dependency happy-dom to v21 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16140
- chore(deps): update dependency cac to ^7.1.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16135
- chore(deps): update dependency mermaid to ^12.2.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16136
- chore(deps): update dependency watchpack to v2.6.1 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16138
- chore(deps): upgrade SWC Next to 0.3.1 by @CPunisher in https://github.com/web-infra-dev/rspack/pull/16151
- Revert "fix(mf): make deterministic IDs independent of project paths" by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/16161
- @orgads made their first contribution in https://github.com/web-infra-dev/rspack/pull/15718
- @Jarvis636431 made their first contribution in https://github.com/web-infra-dev/rspack/pull/16087
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v2.2.9...v2.3.0-beta.0
v2.2.9
Rspack's chunking algorithm has been improved to reduce duplicate modules across chunks. (#15885)
https://github.com/user-attachments/assets/0840ec5b-7eea-4d37-9053-cc5cef176103
Rspack upgrades browserslist-rs and enables deflate compression for its browser data, reducing native binary by 2.13 MB (3.08%). (#16009)
- feat: propagate available module growth during code splitting by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/15885
- perf(binding): query compilation modules lazily by @SyMind in https://github.com/web-infra-dev/rspack/pull/15906
- perf: avoid transferring unused NormalModuleFactory dependencies by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/15931
- perf(sources): compact retained source storage by @SyMind in https://github.com/web-infra-dev/rspack/pull/15944
- perf(stats): cache item type strings in StatsFactory by @stormslowly in https://github.com/web-infra-dev/rspack/pull/15779
- perf: use a hash set to deduplicate extracted comments by @CoderSerio in https://github.com/web-infra-dev/rspack/pull/15967
- perf(watcher): avoid per-node concurrent sets in the root analyzer by @guru-irl in https://github.com/web-infra-dev/rspack/pull/15965
- perf: share Module and KnownBuildInfo accessors by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/15883
- perf: optimize placeholder and Node external matching by @intellild in https://github.com/web-infra-dev/rspack/pull/15808
- perf(sources): profile allocations and trim source map capacity by @SyMind in https://github.com/web-infra-dev/rspack/pull/16014
- perf(sources): release generated value after static source map by @SyMind in https://github.com/web-infra-dev/rspack/pull/16022
- perf(core): cache assetEmitted source and content per info object by @guru-irl in https://github.com/web-infra-dev/rspack/pull/15963
- perf(binding): share NormalModule accessors by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/16039
- perf: share equal factorize path lists by content by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/16036
- perf(split-chunks): reuse function chunks filter results per chunk set by @guru-irl in https://github.com/web-infra-dev/rspack/pull/15964
- perf(binding): materialize module source maps lazily by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/15882
- perf: share compilation log entry accessors by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/16052
- perf(cache): restore cached modules off the make main task by @guru-irl in https://github.com/web-infra-dev/rspack/pull/16050
- perf(core): share file counter dependency lists by interned content by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/16043
- fix(types): allow void returns in needAdditionalPass hooks by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/15908
- fix(types): accept falsy loaders and child compiler plugins by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/15912
- fix(types): allow single loader returns from rule use functions by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/15920
- fix: preserve interned path sharing in cache serialize by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/15910
- fix(types): correct Compilation.getAsset return type by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/15932
- fix(binding): scope importModule publicPath callbacks to compiler by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/15928
- fix(binding): release transient TSFN callbacks by @SyMind in https://github.com/web-infra-dev/rspack/pull/15938
- fix(types): allow omitting child compiler plugins by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/15948
- fix(css): load async stylesheets with a shared runtime by @intellild in https://github.com/web-infra-dev/rspack/pull/15869
- fix(deps): upgrade lightningcss to 1.0.0-alpha.72 by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/15991
- fix: propagate async status through lazy barrel re-exports by @dmchoi77 in https://github.com/web-infra-dev/rspack/pull/15905
- fix(copy): register a missing glob base dir as a missing dependency by @BleedingDev in https://github.com/web-infra-dev/rspack/pull/15901
- fix(css): end unterminated url() at EOF as a url token by @IShinji in https://github.com/web-infra-dev/rspack/pull/15911
- fix: preserve statement boundaries in modern-module output by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/16008
- fix(ids): rehash identical keys in compact-hashed ids by @n0th1ng-else in https://github.com/web-infra-dev/rspack/pull/15915
- fix(deps): upgrade swc_core to 82.0.0 by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/16009
- fix: resolve aliases in import.meta.glob patterns by @aryan1306 in https://github.com/web-infra-dev/rspack/pull/15898
- fix: only source map JS and CSS assets from devtool, matching webpack by @Paca-Vaca in https://github.com/web-infra-dev/rspack/pull/16018
- fix: support deferred imports introduced by hot updates by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/16015
- fix: concatenate empty CommonJS modules without export access by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/15913
- fix(core): ignore source map directives in JavaScript strings by @Tiancheng-Xu in https://github.com/web-infra-dev/rspack/pull/15969
- fix(css-extract): preserve relative paths from publicPath callbacks by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/15923
- fix(lazy-compilation): keep import attributes and phase when building activated modules by @stormslowly in https://github.com/web-infra-dev/rspack/pull/16023
- fix(lazy-compilation): keep activated modules across rebuilds by @stormslowly in https://github.com/web-infra-dev/rspack/pull/15134
- fix(lazy-compilation): keep issuer and resolve options when building activated modules by @stormslowly in https://github.com/web-infra-dev/rspack/pull/16024
- fix(watcher): report watched files inside directories that appear by @guru-irl in https://github.com/web-infra-dev/rspack/pull/15966
- fix(mf): honor singleton options for shared prefixes in manifests by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/16012
- fix(watcher): report recreated files by their final state by @guru-irl in https://github.com/web-infra-dev/rspack/pull/16040
- fix: preserve pure exports during module concatenation by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/16053
- fix(resolver): keep RegExp restrictions in ResolverFactory cache key by @stormslowly in https://github.com/web-infra-dev/rspack/pull/16054
- docs: use synchronous tap in getStats example by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/15981
- docs: fix CopyRspackPlugin patterns example by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/15982
- docs: mark asynchronous compiler hook callbacks async by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/15983
- docs: fix asset name in processAssets example by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/15985
- docs: avoid duplicate declarations in resolver example by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/15987
- docs: use supported compilation hooks in examples by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/15984
- docs: clarify source map asset filtering by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/15990
- docs: define RuntimeGlobals in addRuntimeModule example by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/15986
- docs: register run examples on the run hook by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/15989
- docs: await module rebuilds in finishModules example by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/15988
- docs: clarify emitAsset filename conflicts by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/15992
- docs: fix statsNormalize option assignment by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/15994
- docs: document compilation hook factory parameters by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/15998
- docs: document ignoring requests in afterResolve by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16001
- docs: call the runtime hash getter in example by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/15996
- docs: clarify compilation hash properties by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/15995
- docs: document compile hook parameters by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/15997
- docs: document resolveForScheme hook map and return value by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16000
- docs: correct statsPreset hook map type by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/15999
- docs: clarify child compiler inheritance by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/15993
- docs: improve page descriptions for documentation discovery by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16004
- docs: clarify target defaults and Lightning CSS inheritance by @intellild in https://github.com/web-infra-dev/rspack/pull/15546
- docs: add RomeOS to homepage users by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16056
- docs: document SWC loader reactCompiler option by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16060
- docs: clarify Rspack-specific SWC loader options by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16062
- docs: fix missing imports and variables in config examples by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16063
- docs: fix SWC examples and simplify isolatedModules guidance by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16064
- test: migrate more configurations to TypeScript by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/15919
- test: migrate nine more configurations to TypeScript by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/15925
- test: migrate persistent caching example to TypeScript by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/15937
- chore(deps): update rust crate swc_config to 6.0.1 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/15954
- chore(deps): update dependency @shikijs/transformers to ^4.5.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/15956
- chore(deps): update dependency enhanced-resolve to v5.26.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/15957
- chore(deps): update dependency memfs to v4.80.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/15958
- chore(deps): update patch npm dependencies by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/15953
- chore(deps): update dependency playwright to v1.63.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/15959
- chore(deps): update rust crate xxhash-rust to v0.8.16 [security] by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/15961
- chore(deps): update github-actions by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/15976
- chore(deps): update patch npm dependencies by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/15971
- chore(deps): update dependency ws to ^8.22.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/15975
- chore(deps): update dependency tinypool to ^2.2.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/15973
- chore(deps): update dependency mermaid to ^12.1.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/15972
- chore(deps): update dependency webpack-sources to v3.6.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/15974
- chore(deps): update patch crates by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/15645
- chore(deps): upgrade winnow to v1 by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16003
- chore(deps): update Rstest to ^0.12.3 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16033
- chore(deps): update pnpm to v11.28.5 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16032
- chore(deps): update rust crate async-recursion to 1.2.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/16034
- chore(ci): align Dylint with the project Rust toolchain by @intellild in https://github.com/web-infra-dev/rspack/pull/16042
- chore: disable resolve cache by default for new cache by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/16055
- chore(deps): upgrade rstack to v0.8.3 by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/16059
- @dmchoi77 made their first contribution in https://github.com/web-infra-dev/rspack/pull/15905
- @IShinji made their first contribution in https://github.com/web-infra-dev/rspack/pull/15911
- @aryan1306 made their first contribution in https://github.com/web-infra-dev/rspack/pull/15898
- @Paca-Vaca made their first contribution in https://github.com/web-infra-dev/rspack/pull/16018
- @Tiancheng-Xu made their first contribution in https://github.com/web-infra-dev/rspack/pull/15969
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v2.2.8...v2.2.9