Skip to content

v1.0.0-beta.3

Compare
Choose a tag to compare
@chenjiahan chenjiahan released this 06 Aug 12:26
· 800 commits to main since this release

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