Note
This is an early preview release intended for testing only. It introduces a number of breaking changes that are not yet final.
- Rsbuild 2.0 upgrade guide: https://v2.rsbuild.rs/guide/upgrade/v1-to-v2
- The full list of breaking changes: #5275
What's Changed
New Features 🎉
- feat(deps): update dependency @rspack/core to ~1.7.1 by @chenjiahan in #6908
- feat!: do not minify Node bundles by @chenjiahan in #6922
- feat(server)!: change default host from 0.0.0.0 to localhost by @chenjiahan in #6940
- feat(cli): update host option to accept boolean by @chenjiahan in #6942
- feat(server): print hint when host is not set by @chenjiahan in #6943
- feat(create-rsbuild): add
@rstest/adapter-rsbuildto reuse rsbuild's configuration by @9aoy in #6941 - feat!: output ESM by default for node target by @chenjiahan in #6950
- feat!: remove deprecated 'content-changed' socket type by @chenjiahan in #6955
- feat(plugin-vue): bump rspack-vue-loader to support hot update by @9aoy in #6956
- feat(deps): update dependency @rspack/core to v1.7.2 by @chenjiahan in #6959
- feat!: raise default Node target to 20 by @chenjiahan in #6965
- feat!: raise default browserslist to baseline 2025-05-01 by @chenjiahan in #6966
Performance 🚀
- perf(core)!: drop CommonJS build by @chenjiahan in #6918
- perf!: make
core-jsan optional peer dependency by @chenjiahan in #6960
Bug Fixes 🐞
- fix(fileSize): remove extra newline for multi environment builds by @chenjiahan in #6924
- fix(core): remove unused exports for client modules by @chenjiahan in #6954
- fix(overlay): fix overlay crash in environments without custom elements by @chenjiahan in #6957
Refactor 🔨
- refactor!: remove
@rsbuild/webpackpackage by @chenjiahan in #6896 - refactor(core):
context.bundlerTypeno longer includeswebpackby @chenjiahan in #6897 - refactor!: remove webpack related configurations by @chenjiahan in #6898
- refactor: remove provider helpers by @chenjiahan in #6899
- refactor!: remove
providerconfig by @chenjiahan in #6900 - refactor: replace webpack references with rspack by @chenjiahan in #6901
- refactor!: remove deprecated
source.aliasconfiguration by @chenjiahan in #6902 - refactor!: remove deprecated
source.aliasStrategyconfiguration by @chenjiahan in #6903 - refactor!: remove deprecated HTML template parameters by @chenjiahan in #6909
- refactor!: remove
performance.profileconfiguration by @chenjiahan in #6910 - refactor!: remove
performance.bundleAnalyzerconfiguration by @chenjiahan in #6911 - refactor!: remove
compilerparameter fromrsbuild.build()by @chenjiahan in #6912 - refactor!: remove
compilerparameter fromrsbuild.startDevServer()by @chenjiahan in #6913 - refactor!: drop support for Node 18 by @chenjiahan in #6914
- refactor: replace URL parsing helper with native URL.canParse by @chenjiahan in #6916
- refactor: migrate pre-bundled packages to dynamic imports by @chenjiahan in #6925
- refactor: simplify inspectConfig functions by @chenjiahan in #6930
- refactor: dynamic import source map libs by @chenjiahan in #6928
- refactor: migrate pre-bundled sirv to dynamic imports by @chenjiahan in #6936
- refactor: dynamic import launch-editor-middleware by @chenjiahan in #6937
- refactor: simplify core-js path resolution by @chenjiahan in #6962
- refactor: replace
__dirnamewithimport.meta.dirnameby @chenjiahan in #6964
Document 📖
- docs: update README with Rsbuild 2.0 development info by @chenjiahan in #6892
- docs: setup upgrade guide for v2 by @chenjiahan in #6893
- docs: update Node.js support information in upgrade guide by @chenjiahan in #6917
- docs: recommend using contenthash by @chenjiahan in #6919
- docs: add pure ESM package section to upgrade guide by @chenjiahan in #6920
- docs: update navigation for Rsbuild 1.x link by @chenjiahan in #6921
- docs: update minification defaults for Node target by @chenjiahan in #6923
- docs: add server host changes to v2 guide by @chenjiahan in #6948
- docs: update default host value by @chenjiahan in #6949
- docs: update default value and descriptions for
output.moduleby @chenjiahan in #6952 - docs: add Node target output defaults in v2 upgrade guide by @chenjiahan in #6953
- docs: remove export formats section from JS API docs by @chenjiahan in #6958
- docs: include core-js installation instructions by @chenjiahan in #6961
- docs: update upgrade guide to reflect core-js changes by @chenjiahan in #6963
- docs: update default browserslist values by @chenjiahan in #6968
- docs: update upgrade guide for new default browserslist by @chenjiahan in #6972
- docs: update server logs examples by @chenjiahan in #6974
Other Changes
- chore(CI): no longer run webpack-related e2e tests by @chenjiahan in #6894
- test: remove webpack-related e2e helpers by @chenjiahan in #6895
- chore: remove unnecessary Rspack configurations by @chenjiahan in #6915
- chore(deps): update dependency preact to v10.28.2 [security] by @renovate[bot] in #6927
- chore: fix tsgo type inference issues by @chenjiahan in #6929
- chore: disable Nx TUI via CLI flag by @chenjiahan in #6931
- chore(deps): update tsgo to latest and fix type issues by @chenjiahan in #6932
- chore(deps): update dependency ws to ^8.19.0 by @renovate[bot] in #6939
- chore(deps): update dependency @rspack/plugin-react-refresh to ^1.6.0 by @renovate[bot] in #6938
- chore: lock file maintenance by @chenjiahan in #6944
- chore(deps): update dependency happy-dom to ^20.1.0 by @renovate[bot] in #6946
- chore(deps): update pnpm to v10.28.0 by @renovate[bot] in #6947
- chore(deps): update all patch dependencies by @renovate[bot] in #6951
- release: 2.0.0-alpha.0 by @chenjiahan in #6975
Full Changelog: v1.7.2...v2.0.0-alpha.0