Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release: 1.0.0-beta.0 #7316

Merged
merged 2 commits into from
Jul 26, 2024
Merged

release: 1.0.0-beta.0 #7316

merged 2 commits into from
Jul 26, 2024

Conversation

chenjiahan
Copy link
Member

@chenjiahan chenjiahan commented Jul 26, 2024

Performance Improvements ⚡

In version 1.0.0-beta.0 we have made a number of performance optimizations, which together add up to significant performance gains. According to benchmark data, Rspack's dev startup is 4.7% faster, and its prod build is 11% faster.

Detailed changes:

Breaking Changes 🛠

Upgraded to latest SWC

@rspack/core now depends on swc_core v0.99 (previously v0.96).

If your project is using the SWC Wasm plugin, this will be a breaking change, and you will need to upgrade the SWC Wasm plugin to the latest version.

PR: #7292

Upgraded to webpack-dev-server v5

@rspack/cli now depends on webpack-dev-server v5 (previously v4).

If you are using @rspack/cli, please be aware of the following breaking changes:

  • The minimum supported Node.js version of webpack-dev-server@5 is 18.12.0.
  • The devServer configuration options for Rspack include several breaking changes. Please refer to the webpack-dev-server v5 migration guide for more details.

PR: #7292

Deprecated @rspack/plugin-minify

rspack/plugin-minify has been deprecated as it was a temporary package to support Terser.

Now Rspack has full support for terser-webpack-plugin. If you need to use Terser as the minimizer, we recommend using terser-webpack-plugin instead of @rspack/plugin-minify:

// rspack.config.js
- const MinifyPlugin = require('@rspack/plugin-minify');
+ const TerserPlugin = require('terser-webpack-plugin');

module.exports = {
  optimization: {
    minimize: true,
    minimizer: [
-    new MinifyPlugin({ minifier: 'terser' }),
+    new TerserPlugin(),
    ],
  },
};

PR: #7307

All Changes

Exciting New Features 🎉

Bug Fixes 🐞

Document Updates 📖

Other Changes

New Contributors

Full Changelog: v1.0.0-alpha.5...v1.0.0-beta.0

@github-actions github-actions bot added the team The issue/pr is created by the member of Rspack. label Jul 26, 2024
@chenjiahan chenjiahan merged commit 848d59a into main Jul 26, 2024
65 checks passed
@chenjiahan chenjiahan deleted the release_1_0_0_beta_0 branch July 26, 2024 05:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team The issue/pr is created by the member of Rspack.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant