Highlights 💡
⚡️ Up to 20% faster on macOS
On macOS, Rspack v1.2.7 is up to 20% faster than v1.2.6. See #9518 for details.

🌿 20% less HMR memory usage
Name | Base (2025-02-28 2b45815) | Current | Change |
---|---|---|---|
threejs_development-mode_10x_hmr + rss memory | 1137 MiB ± 129 MiB | 890 MiB ± 293 MiB | -21.72 % |
To find out more, follow this link; and this is the benchmark report.
What's Changed
Performance Improvements ⚡
- perf: avoid create new dependency for add include by @ahabhgk in #9505
- perf: try reduce max_blocking_threads to save memory and reduce fs contention by @hardfist in #9518
Exciting New Features 🎉
- feat: render more runtime template with dojang by @GiveMe-A-Name in #9444 #9447 #9450 #9487 #9452 #9491 #9496 #9509 #9498
- feat: amd context require by @ahabhgk in #9495
- feat: compiler.run add options to set modifiedFiles and removedFiles by @jerrykingxyz in #9475
- feat: add contextInfo.issuerLayer for nmf resolve hooks by @ahabhgk in #9504
- feat: js api get outgoing connections in order by @SyMind in #9510
- feat(memory-cache): add
maxGenerations
support by @h-a-n-a in #9517 - feat: improve add include error msg by @SyMind in #9529
- feat(ci): enable cfa by @stormslowly in #9470
Bug Fixes 🐞
- fix: hmr should work when moving module between different runtime by @ahabhgk in #9412
- fix: persistent cache skip calc modified_files when rebuild by @jerrykingxyz in #9448
- fix: hash runtime condition for connection by @ahabhgk in #9456
- fix: detect module graph change right before build_chunk_graph by @JSerFeng in #9453
- fix: unify js assets info type by @SyMind in #9464
- fix: commonjs static library mode by @hai-x in #9390
- fix(cli): failed to run preview with TS config file by @chenjiahan in #9468
- fix: handle css with BOM by @inottn in #9467
- fix: rebuild ignore modules contain built-in loader errors by @jerrykingxyz in #9482
- fix: concate with external runtime specific modules by @JSerFeng in #9490
- fix: add_include can not incremental by @SyMind in #9423
- fix: entry dependency passed to addInclude should be used in module graph by @SyMind in #9476
- fix(rspack_plugin_runtime): do not render chunks that only contain non-js module types by @ScriptedAlchemy in #9521
- fix: update asset can return undefined by @SyMind in #9530
Document Updates 📖
- docs: complete loader context API doc and JSDoc by @chenjiahan in #9478
- docs: fix the reference to process asset stages in examples by @xbzhang2020 in #9485
- docs: compiler.run add option param by @jerrykingxyz in #9503
- docs: update CRA migration guide by @chenjiahan in #9512
- docs: update local debugging command by @KuSh in #9522
- docs: update Module Federation syntax downgrade FAQ by @chenjiahan in #9528
Other Changes
- chore: release v1.2.6 by @h-a-n-a in #9446
- chore(deps): update npm dependencies by @renovate in #9462
- chore(deps): update pnpm to v9.15.6 by @renovate in #9463
- chore(deps): update dependency prettier to v3.5.2 by @renovate in #9459
- test: add runner cache for better test performance by @LingyuCoder in #9449
- chore: reduce debug symbol size by @hardfist in #9465
- test: move plugin test to eco-ci by @LingyuCoder in #9466
- test: lazy create stats in runner by @LingyuCoder in #9469
- chore: mark
compiler.compile
as private method by @chenjiahan in #9472 - ci: save cache in test task by @LingyuCoder in #9474
- chore(deps): update github-actions by @renovate in #9458
- chore: use tmpdir to avoid no space left error by @hardfist in #9486
- test: improve webpack test performance by @LingyuCoder in #9489
- chore: release v1.2.7-alpha.0 by @stormslowly in #9493
- test(diff): remove modules injected by css-loader by @LingyuCoder in #9497
- test: improve cli test performance by @LingyuCoder in #9494
- chore: cleanup for avoiding meaningless diff with more-js-api-v2 by @ahabhgk in #9499
- test: run cli test cases parallel by @LingyuCoder in #9502
- chore: add reason about why skip big-assets test by @ahabhgk in #9516
New Contributors
- @xbzhang2020 made their first contribution in #9485
- @KuSh made their first contribution in #9522
Full Changelog: v1.2.6...v1.2.7