Highlights
Support optimization.splitChunks.hidePathInfo
Prevents exposing path info when creating names for parts splitted by maxSize.
Support splitChunks.automaticNameDelimiter
By default rspack will generate names using origin and name of the chunk (e.g. vendors~main.js
). This option lets you specify the delimiter to use for the generated names. doc
Support splitChunks.cacheGroups.{cacheGroup}.filename
Sets the hint for chunk id. It will be added to chunk's filename. doc
What's Changed
Performance Improvements ⚡
Exciting New Features 🎉
- feat: mf fallback module by @ahabhgk in #4895
- feat(rspack/minified): support info.minimized from copy plugin (#4908) by @Kunduin in #4909
- feat: eval binary expression by @bvanjoi in #4918
- feat: support splitChunks.cacheGroup.filename&delimiter by @LingyuCoder in #4930
- feat: runtime optimization by @IWANABETHATGUY in #4917
- feat: support eval
typeof require
by @bvanjoi in #4929 - feat(runtime): optimize get chunk filename runtime module with dynamic+static by @LingyuCoder in #4943
- feat: add create_module_assets by @JSerFeng in #4941
- feat: add more chunk methods by @ahabhgk in #4951
- feat: support optimization.splitChunks.hidePathInfo option by @SyMind in #4964
Bug Fixes 🐞
- fix: module decorator when harmony mixed by @LingyuCoder in #4900
- fix: webpack-test/cases/parsing/issue-7519 with tree shaking enable by @IWANABETHATGUY in #4904
- fix: eco-ci trigger after nightly release by @ahabhgk in #4853
- fix(rspack_core): oxc_resolver v0.6.0 - resolve styled-components correctly by @Boshen in #4928
- fix: inner graph function visit by @IWANABETHATGUY in #4927
- fix: should return number.to_string instead of char::from by @IWANABETHATGUY in #4947
- fix: rm dep type for resolve by @bvanjoi in #4946
- fix: 🐛 align with webpack number_hash by @IWANABETHATGUY in #4955
- fix: module.context is undefined by @SyMind in #4961
- fix: remove static new_treeshaking switch by @JSerFeng in #4962
- fix: compare blocks and its group_options by @bvanjoi in #4967
- fix: get js chunk filename by @ahabhgk in #4971
Other Changes
- chore(runtime-diff): align module decorator runtime modules with webpack by @LingyuCoder in #4891
- chore(runtime-diff): alignment of hot module replacement runtime module by @LingyuCoder in #4856
- chore: remove all skipLibCheck by @xiaoxiangmoe in #4910
- chore: add build:cli:release:{platform} scripts by @aweary in #4859
- test: prevent .DS_store been add to test cases on macos by @LingyuCoder in #4920
- refactor: de-hardcoded module factory and move mf out of core by @ahabhgk in #4925
- chore: deprecate @rspack/plugin-node-polyfill by @hardfist in #4937
- chore: add debug info under panic with debug build by @h-a-n-a in #4940
- chore(runtime-diff): alignment of get chunk filename by @LingyuCoder in #4500
- refactor: error and diagnostics by @h-a-n-a in #4866
- refactor:
miette::Error
asDiagnostic
andrspack_error::Error
by @h-a-n-a in #4892 - chore: optimize diff test case by @LingyuCoder in #4950
- refactor: should not always rely on
Result
by @h-a-n-a in #4880 - chore(webpack-test): enable resolving/browser-field tests by @Boshen in #4952
- test(runtime): add test case of using [id] in get chunk filename runtime module by @LingyuCoder in #4972
- chore(runtime-diff): alignment of startup chunk dependencies runtime module by @LingyuCoder in #4508
New Contributors
Full Changelog: v0.4.2...v0.4.3