Highlights
React Compiler in Rust
@rsbuild/plugin-react now supports the reactCompiler option, enabling faster React Compiler through Rspack's Rust-based builtin:swc-loader.
pluginReact({
reactCompiler: true,
});See the reactCompiler documentation for configuration details.
Requires
@rsbuild/core >= 2.1.0-beta.0and@rsbuild/plugin-react >= 2.1.0.
What's Changed
New Features 🎉
- feat(core): limit printed server routes by @chenjiahan in #7912
- feat(core): enable source import by default by @chenjiahan in #7930
- feat(plugin-svgr): add parallel option by @chenjiahan in #7915
- feat(plugin-babel): add parallel option by @chenjiahan in #7917
- feat(deps): update @rspack/core to 2.1.0-beta.0 by @chenjiahan in #7937
- feat(plugin-react): add reactCompiler option by @chenjiahan in #7938
- feat(plugin-babel)!: publish as pure ESM package by @chenjiahan in #7919
- feat(plugin-babel)!: drop Rsbuild v1 support by @chenjiahan in #7922
Performance 🚀
- perf(core): optimize initial chunks collection by @chenjiahan in #7909
- perf(core): patch dotenv-expand to improve performance by @chenjiahan in #7910
Bug Fixes 🐞
- fix(core): compact build time logs by @chenjiahan in #7911
- fix(core): update route limit hint without shortcuts by @chenjiahan in #7913
- fix(plugin-babel): remove rspack cache guard by @chenjiahan in #7928
- fix(core): generate correct script paths in RsbuildHtmlPlugin by @hpoepping in #7934
- fix(plugin-react): check reactCompiler rspack version by @chenjiahan in #7940
Refactor 🔨
- refactor: use rspack magic comment prefix by @chenjiahan in #7864
Document 📖
- docs: use giget for example initialization by @chenjiahan in #7918
- docs: update parallel loader docs by @chenjiahan in #7920
- docs: update parallel performance guide by @chenjiahan in #7921
- docs: remove buildCache experimental notices by @chenjiahan in #7929
- docs: add Wasm source import usage by @chenjiahan in #7932
- docs(plugin-react): document reactCompiler option by @chenjiahan in #7944
Other Changes
- chore: add plugin npm support metadata by @sh962214-hub in #7914
- release: @rsbuild/plugin-svgr v2.0.4 by @chenjiahan in #7916
- chore(deps): update playwright monorepo to v1.61.0 by @renovate in #7923
- release: @rsbuild/plugin-babel v2.0.0 by @chenjiahan in #7924
- chore(plugin-babel): add npm support metadata by @alejandrorivas-pixel in #7925
- chore(deps): update dependency @rslib/core to v0.23.0 by @renovate in #7926
- chore(deps): update babel to v2 by @renovate in #7927
- test: add Wasm source import e2e case by @chenjiahan in #7931
- chore: add bugs metadata to remaining plugin packages by @killernova in #7935
- test: refine html tag relative path e2e by @chenjiahan in #7936
- chore(deps): update dependency http-proxy-middleware to v4.1.1 [security] by @renovate in #7939
- chore(deps): update dependency oxfmt to ^0.55.0 by @renovate in #7942
- chore(deps): update swc monorepo to ^12.13.0 by @renovate in #7943
New Contributors
- @sh962214-hub made their first contribution in #7914
- @alejandrorivas-pixel made their first contribution in #7925
- @killernova made their first contribution in #7935
- @hpoepping made their first contribution in #7934
Full Changelog: v2.0.15...v2.1.0-beta.0