What's Changed
Performance Improvements ⚡
- perf: Replace OverlayMap with RollbackAtomMap in exports artifact by @hardfist in #13143
- perf: remove ProcessUnlazyDependenciesTask by @hardfist in #13151
- perf: reduce content hash and lazy filename tempate ctx compute by @SyMind in #13156
New Features 🎉
- feat: optimize dyn import for esm output by @JSerFeng in #13121
- feat: making RSC compatible with lazy compilation by @SyMind in #13136
- feat: cjs require destructuring assignment tree shaking by @ahabhgk in #13149
- feat: keep unknown import.meta properties by @intellild in #12796
- feat(javascript): align scope termination and DCE with webpack by @LingyuCoder in #13147
- feat: support strict this context on imports by @ahabhgk in #13169
- feat: rsdoctor support the side effects infos by @yifancong in #12983
- feat(javascript): improve const eval by @LingyuCoder in #13167
- feat(stats): enable stats.colors by default when environment supports by @LingyuCoder in #13161
Bug Fixes 🐞
- fix: skip SRI for external URLs not under publicPath by @LingyuCoder in #13134
- fix: remove useless dyn_refs by @JSerFeng in #13148
- fix: when there are 2+ dep targets in the same chunk, create facade chunks for all of them by @JSerFeng in #13154
- fix(html): handle html fragments and diagnostics by @LingyuCoder in #13178
- fix: try catch return statement DCE by @LingyuCoder in #13179
Refactor 🔨
- refactor: replace compiler.webpack references with rspack by @chenjiahan in #13166
- refactor: remove impl in pass by @hardfist in #13168
- refactor: using namespace object for dynamic import by @JSerFeng in #13170
Document Updates 📖
- docs: update webpack migration guide for Rspack 2.0 by @chenjiahan in #13141
- docs: move Hana from Core team to Emeriti members by @Copilot in #13159
- docs(config): clarify array entry behavior and add polyfill example by @chenjiahan in #13162
- docs: update node imports to use node: protocol by @chenjiahan in #13163
- docs: update examples to use esm syntax by @chenjiahan in #13165
- docs: update node version requirements for v2 by @Timeless0911 in #13180
Other Changes
- release: 2.0.0-beta.4 by @chenjiahan in #13140
- chore(ci): add bench runner label input in CI by @stormslowly in #13127
- chore(ci): add timeout for benchmark action by @stormslowly in #13146
- chore: switch to mimalloc crate by @hardfist in #13160
- chore: bump
swc_corefrom 56 to 58 by @CPunisher in #13164 - chore: use new rule to generate crate version by @LingyuCoder in #13175
Full Changelog: v2.0.0-beta.4...v2.0.0-beta.5