npm @rspack/cli 1.0.0-beta.3
v1.0.0-beta.3

latest releases: 0.7.6-canary-fd6c40d-20240918093542, 1.0.5, 1.0.4...
one month ago

What's Changed

Breaking Changes 🛠

SwcJsMinimizerRspackPlugin

Move all SWC options to minimizerOptions:

  • The compress option has been moved to minimizerOptions.compress.
  • The mangle option has been moved to minimizerOptions.mangle.
  • The format option has been moved to minimizerOptions.format.
  • The module option has been moved to minimizerOptions.module.
module.exports = {
  optimization: {
    minimizer: [
      new rspack.SwcJsMinimizerRspackPlugin({
-       format: {
-         ecma: 6,
-       },
+       minimizerOptions: {
+         format: {
+           ecma: 6,
+         },
+       },
      }),
    ],
  },
};

LightningCssMinimizerRspackPlugin

  • The browserslist option has been renamed to minimizerOptions.targets.
module.exports = {
  optimization: {
    minimizer: [
      new rspack.LightningCssMinimizerRspackPlugin({
-       browserslist: 'Chrome >= 53',
+       minimizerOptions: {
+         targets: 'Chrome >= 53',
+       },
      }),
    ],
  },
};

PR: #7444

Performance Improvements ⚡

  • perf: rule matcher allocates only if resource_path is not a valid UTF-8 sequence by @h-a-n-a in #7441
  • perf: bump lightningcss to remove duplicated browerslist-rs by @chenjiahan in #7461

Exciting New Features 🎉

Bug Fixes 🐞

Document Updates 📖

Other Changes

  • test: enable inner graph and concat modules for runtime condition diff test by @ahabhgk in #7416
  • ci: fix git clean wrong by filename too long by @SyMind in #7425
  • chore(deps): update dependency sass-loader to v16 by @renovate in #7370
  • refactor(type): increase type-coverage by @SoonIter in #7437
  • chore(infra/biome): enable noParameterAssign by @shulaoda in #7430
  • refactor(typescript): increase typescript type coverage to 100% for rspack-plugin-react-refresh by @shulaoda in #7448
  • chore: remove log in mf test by @ahabhgk in #7451
  • chore: documentation chores, typo, format, links, etc by @AkatQuas in #7457
  • refactor!: redesign minimizer plugin options by @ahabhgk in #7444

Full Changelog: v1.0.0-beta.2...v1.0.0-beta.3

Don't miss a new cli release

NewReleases is sending notifications on new releases.