What's Changed
Highlights
Fix: build gets stuck at seal when using Module Federation with shared
option
When using ModuleFederationPlugin with shared
option, build may get stuck. See #5494
Performance Improvements ⚡
- perf: lazy calculate compilation.modules and compilation.chunks by @jerrykingxyz in #5433
- perf: lazy calculate asset.source by @jerrykingxyz in #5483
- perf: set default WATCHPACK_WATCHER_LIMIT to 20 by @hardfist in #5486
- perf: enable "thin" LTO for release by @Boshen in #5505
Exciting New Features 🎉
Bug Fixes 🐞
- fix: evaluate if stmt should skip import specifier in dead branch by @JSerFeng in #5431
- fix: resolve error with inline loader without module specifier by @SyMind in #5409
- fix(@rspack/core): js Compilation instance is not recreated as expected when rebuilding on watch/serve mode by @xc2 in #5436
- fix(renovate): ignore
textwrap
by @Boshen in #5444 - fix: InnerGraph does not rename the usage of the renamed class in if statement #5441 by @IWANABETHATGUY in #5448
- fix: use full content hash in
SourceMapDevtoolPlugin
by @SyMind in #5447 - fix: assign depth for include dependencies by @ahabhgk in #5458
- fix: fix oxlint warning and trigger js when pnpm changes by @Boshen in #5484
- fix: make split consistant result by @JSerFeng in #5488
- fix: should not provide for defined variable by @ahabhgk in #5489
- fix: asset source can not be undefined by @jerrykingxyz in #5509
Other Changes
- cleanup
CompatibilityScanner
by @bvanjoi in #5422 - refactor: cleanup unnecessary swc visitor by @bvanjoi in #5432
- chore: use
cargo machete
for checking unused dependencies by @Boshen in #5429 - chore: fix broken build by @Boshen in #5440
- refactor: streamline filename creation and context preparation for assets in SourceMapDevToolPlugin by @SyMind in #5434
- chore: unify crate versions by @Boshen in #5449
- chore: pin
styled_components
along with the same swc versions by @Boshen in #5451 - chore(deps): update crates by @renovate in #5425
- chore(deps): update rust crate wasmparser to 0.120.0 by @renovate in #5455
- Cleanup some scanner by @bvanjoi in #5452
- refactor: cleanup swc react visitor by @bvanjoi in #5457
- chore: bump indexmap from 1.9.3 to 2.1.0 by @Boshen in #5459
- chore: bump bitflags to v2.4.2 by @Boshen in #5462
- chore: renovate bot turn on npm devDependencies update by @Boshen in #5464
- chore: renovate ignore more directories by @Boshen in #5466
- chore: bump handlebars to v5.1.1 by @Boshen in #5463
- chore: bump TypeScript to 5.3.3 by @Boshen in #5468
- chore: remove typescript devDependencies from packages/create-rspack/template-react-ts by @Boshen in #5470
- refactor: reimplement queue handler by @JSerFeng in #5435
- chore: bump @types/react and @types/react-dom by @Boshen in #5471
- chore(renovate): ignore @playwrite/test by @Boshen in #5473
- chore: ignore react upgrades by @Boshen in #5474
- chore(deps): update npm devdependencies by @renovate in #5467
- chore(deps): update pnpm to v8.14.3 by @renovate in #5465
- refactor: cleanup
CommonJsScanner
by @bvanjoi in #5482 - chore: enable newTreeshaking on arco-pro diff case by @LingyuCoder in #5381
- refactor: cleanup
CommonJsExportsParserPlugin
by @bvanjoi in #5487 - refactor: cleanup
NodeStuffScanner
by @bvanjoi in #5493 - chore: revert TypeScript to v5.0.2 due to broken "NodeNext" for compilerOptions.module by @Boshen in #5503
- refactor: align HarmonyCompatibiltyDependency with webpack by @LingyuCoder in #5472
Full Changelog: v0.5.2...v0.5.3