yarn @rspack/cli 0.3.5
v0.3.5

latest releases: 0.7.0-beta.2-canary-89c6913-20240527004336, 0.7.0-beta.2-canary-89c6913-20240526004502, 0.7.0-beta.2-canary-89c6913-20240525004143...
13 months ago

Highlights

rspackFuture.disableTransformByDefault

Default transformation was a default strategy for transform introduced v0.1.x. This introduced ton of problems during our daily development. For example, excluding node_modules for certain libraries are not supported, thus, which results in some mis-transformations.
From now on, you can opt-in experiments.rspackFuture.disableTransformByDefault = true to disable the internal transformations. This greatly aligns Rspack with Webpack architecture. By enabling this option, these few options are not able to use anymore:

Builtin types(Rule.type) are removed in favor of webpack's web-standard bundling:

  • jsx, jsx/auto, jsx/esm, jsx/dynamic
  • ts, tsx

We will come up a new strategy to add back these DX friendly features in the future.
Instead, builtin:swc-loader is added for fine-grained transformation.
Please refer to this guide for the migration and details.

react-refresh migration

In this version, we'd like to introduce a better way to enable react fast refresh with @rspack/plugin-react-refresh, which is more powerful and flexible than builtins.react.refresh = true, now you can use it with builtin:swc-loader, swc-loader, or babel-loader.
Checkout docs for more details

Deprecating builtin:sass-loader

builtin:sass-loader is deprecated in favor of sass-loader. You can still use it in this and the next minor version. It will be officially removed in v0.5.0. See this for our deprecation stages.

Optimize the progress bar style

  • Thinner and shorter lines
  • Removed progress text
  • Green color

Preview:

Screen.Recording.2023-09-15.at.17.44.51.mov

What's Changed

Something

Performance Improvements ⚡

Exciting New Features 🎉

Bug Fixes 🐞

Other Changes

Full Changelog: v0.3.4...v0.3.5

Don't miss a new cli release

NewReleases is sending notifications on new releases.