npm @rspack/cli 0.7.4
v0.7.4

latest releases: 1.1.1, 1.1.0, 1.1.0-beta.0...
5 months ago

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 🎉

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 📖

Other Changes

New Contributors

Full Changelog: v0.7.3...v0.7.4

Don't miss a new cli release

NewReleases is sending notifications on new releases.