What's Changed
Performance Improvements ⚡
- perf(esm-lib): optimize ESM library rendering performance by @JSerFeng in #13334
- perf(build_chunk_graph): optimize data structures in code splitter by @JSerFeng in #13403
- perf: rspack_storage parallel write by @jerrykingxyz in #13407
New Features 🎉
- feat: tree shaking for inlined members access dynamic import by @ahabhgk in #13381
- feat: add EsmNodeTargetPlugin for ESM-aware node builtin externals by @JSerFeng in #13370
- feat(pnp)!: drop multi yarn pnp project resolving by @stormslowly in #13389
- feat(rsdoctor): add support for dependency connections by @yifancong in #13384
- feat: enable mangle exports for cjs reexport by @ahabhgk in #13413
- feat(rstest): support unmockRequire methods by @9aoy in #13412
Bug Fixes 🐞
- fix(esm-lib): avoid exporting webpack_require and useless runtime when runtimeChunk is false by @JSerFeng in #13374
- fix: optimize concatenated module code generation hot paths by @LingyuCoder in #13375
- fix: avoid analyze cjs tree shaking for user defined require by @ahabhgk in #13401
- fix(esm-lib): replace panics in get_module_chunk with Result-based error handling by @JSerFeng in #13396
- fix(rsc): should compile css without use server-entry by @SyMind in #13402
- fix: deduplicate source name stable by @SyMind in #13416
- fix(esm-library): deduplicate external module import identifiers in ESM output by @JSerFeng in #13418
- fix(esm-lib): use package name for node_modules short name in dynamic imports by @JSerFeng in #13406
- fix: add coverage for esm library linking, and fix linking errors by @JSerFeng in #13424
- fix: should enforce orphan:false for concatenated module by @JSerFeng in #10317
- fix: lightningcss with previous loader source maps by @SyMind in #13436
- fix: duplicate-sources-order by @SyMind in #13438
- fix(core): implement new Map methods on Compilation.entries by @chenjiahan in #13444
- fix(core): preserve external namespace access in esm externals by @JSerFeng in #13442
Refactor 🔨
- refactor(core): reduce exports info overhead in esm import checks by @LingyuCoder in #13383
- refactor: flush storage when compiler close by @jerrykingxyz in #13395
Document Updates 📖
- docs: remove EsmLibraryPlugin documentation by @chenjiahan in #13386
Other Changes
- chore(deps): update patch npm dependencies by @renovate[bot] in #13350
- chore: release 2.0.0-beta.7 by @LingyuCoder in #13385
- chore(deps): update patch crates by @renovate[bot] in #13393
- chore: bump rslint to 0.3.1 & migrate rslint.json to rslint.config.ts by @fansenze in #13398
- chore: remove old deprecated code of ModernModuleLibraryPlugin by @JSerFeng in #13318
- chore(deps): update dependency less to v4.6.4 by @renovate[bot] in #13351
- chore(deps): update dependency @ast-grep/napi to ^0.42.0 by @renovate[bot] in #13394
- chore(ci): switch wasm test runner back to self hosted by @stormslowly in #13414
- chore: upgrade path-serializer 0.6.0 by @stormslowly in #13411
- chore: renovate ignore linting crates by @renovate[bot] in #13391
- chore: Add memory codspeed benchmarks by @hardfist in #13017
- chore: bump napi dependencies by @CPunisher in #13362
- chore: bump
swc_corefrom 58 to 59 by @CPunisher in #13434 - chore: use ci profile for windows by @hardfist in #13441
Full Changelog: v2.0.0-beta.7...v2.0.0-beta.8