What's Changed
New Features 🎉
- feat: add constructor name for JS runtime modules by @LingyuCoder in #12673
- feat: rspack_cacheable context expose project root by @jerrykingxyz in #12685
- feat: rspack_cacheable add portable path & portable string by @jerrykingxyz in #12688
- feat: add
requireAliasoption to control require variable renaming by @LingyuCoder in #12686 - feat: impl
sync_traceforloggertracing layer by @CPunisher in #12687 - feat: add warning when requireAlias is disabled by @LingyuCoder in #12700
- feat: use rspack-vue-loader to support Vue hot update by @9aoy in #12698
- feat(rstest): add
preserveNewUrloption to keep new URL untouched by @fi3ework in #12632
Bug Fixes 🐞
- fix: report error when access module_graph in loader by @hardfist in #12639
- fix(lint): enable @typescript-eslint/await-thenable rule by @tt-a1i in #12644
- fix(lint): enable @typescript-eslint/require-await rule by @tt-a1i in #12664
- fix(lint): enable @typescript-eslint/return-await rule by @tt-a1i in #12665
- fix: incremental rebuild no code generation entry panic by @jerrykingxyz in #12643
- fix: inlined export invalid syntax comment by @ahabhgk in #12681
- fix(test): flaky test due to calling toJSON while hot updating by @stormslowly in #12694
- fix:
environments.importMetaDirnameAndFilenamenot work by @chenjiahan in #12708 - fix: dynamic entry panic when disable build cache by @SyMind in #12696
- fix(context-replacement): only apply changes when regex matches by @agneym in #12657
- fix(mf): handle missing chunk gracefully and improve expose chunk name logic by @2heal1 in #12709
- fix(type): runtimeModule.source by @9aoy in #12713
Refactor 🔨
- refactor: afterCodeGeneration hook use read only compilation ref by @stormslowly in #12655
- refactor: make compilation readonly for runtimeModule hook by @hardfist in #12670
- refactor: unify artifact clear logic by @hardfist in #12677
- refactor: use DerfOpt's take/replace assist artifact mutation by @stormslowly in #12659
Other Changes
- chore(deps): update patch npm dependencies by @renovate[bot] in #12647
- chore(deps): update patch crates by @renovate[bot] in #12646
- chore: run ci/eco-ci/eco-benchmark on v2 branch by @LingyuCoder in #12650
- chore(deps): update github-actions by @renovate[bot] in #12645
- revert: "feat: add warning when requireAlias is disabled" by @LingyuCoder in #12702
New Contributors
Full Changelog: v1.7.1...v1.7.2