What's Changed
Highlights
LightningCSS minimizer
In v0.7.4 Rspack provides a new CSS minimizer which uses Lightning CSS under the hood, for now you can enable it by optimization.minimizer
, and in Rspack v1.0, it will be enabled by default.
And here are two very useful features powered by the new LightningCSS minimizer:
- removeUnusedLocalIdents: during minification, it removes the CSS declarations corresponding to the unused-symbols. This allows Rspack to work with CSS modules' tree shaking to remove unused CSS declarations corresponding to exports (previously, it would only remove the JS exports).
- browserslist: with this options minification will also performs downgrading. If the postcss-loader was previously used only for downgrading, it can be removed.
Checkout our docs for more details.
Compatible with worker-loader
In v0.7.4 Rspack is compatible with worker-loader, which is usually used by some older projects, so this is provided only as a temporary solution to facilitate these older projects migration to Rspack, checkout our docs for more details.
Exciting New Features 🎉
- feat: lightningcss minimizer by @ahabhgk in #6801
- feat: export FetchCompileAsyncWasmPlugin for worker loader by @ahabhgk in #6832
- feat: add more stats module properties by @LingyuCoder in #6799
- feat: add build time executed modules to stats by @LingyuCoder in #6829
- feat: upgrade webpack latest version by @SyMind in #6800
- feat(runtime): enable rspack version by @zmzlois in #6817
Bug Fixes 🐞
- fix(mf): avoid error webpack_require.f.consume after hmr by @ahabhgk in #6796
- fix: css modules composes same ident with local class by @ahabhgk in #6815
- fix: fix segmentation fault with custom loader by @h-a-n-a in #6824
- fix: basically same codegen of arco-pro by @ahabhgk in #6826
- fix: parse url dependency for minimized css by @ahabhgk in #6827
- fix: should be able to add loader resolver dependencies by @h-a-n-a in #6828
- fix: generate suggestions if api-extractor failed the test by @h-a-n-a in #6834
- fix(cli): should close compiler after building by @chenjiahan in #6835
- fix: docs ci wrong in node 16 by @SyMind in #6840
- fix: source map wrong when columns is false by @SyMind in #6841
- fix: sourceMapFilename default value by @SyMind in #6845
- fix: panic of module_graph.get_depth by @LingyuCoder in #6846
Document Updates 📖
- docs: update slogan and descriptions by @chenjiahan in #6798
- docs: name and dependencies by @SyMind in #6806
- docs: improve
module.rules.descriptionData
by @leimonio in #6797 - docs: infrastructureLogging by @SyMind in #6808
- docs: translate
Rule.descriptionData
by @chenjiahan in #6813 - docs: complete output config by @SyMind in #6814
- docs: add semver declaration by @h-a-n-a in #6825
- docs: complete experiments docs by @SyMind in #6823
- docs: complete module docs by @SyMind in #6843
Other Changes
- chore: mark defferent between webpack defaults by @SyMind in #6795
- chore: remove useless Serialize and Deserialize by @jerrykingxyz in #6809
- chore: add congcong to team member list by @LingyuCoder in #6811
- chore: remove unused lazy compilation file by @LingyuCoder in #6812
- ci: check implemented but not documented configs by @SyMind in #6810
- refactor: cleanup JavaScript API by @h-a-n-a in #6831
- chore(deps): update dependency ws to v8.17.1 [security] by @renovate in #6842
New Contributors
Full Changelog: v0.7.3...v0.7.4