Repository navigation
Highlights
buildCache now uses Rspack’s new cache implementation
If you use performance.buildCache, Rsbuild now uses Rspack’s newCache implementation by default. In Rspack’s benchmarks, the new cache used about 79% less disk space and reduced peak memory usage during cold builds by about 16%.
➡️ Read about Rspack’s cache improvements
If you run into any issues, you can switch back to the previous cache implementation by setting tools.rspack.experiments.newCache to false, or report the issue on GitHub.
import { defineConfig } from '@rsbuild/core';
export default defineConfig({
performance: {
buildCache: true,
},
tools: {
rspack: {
experiments: {
newCache: false,
},
},
},
});What's Changed
New Features 🎉
- feat(plugin-sass): support built-in CSS by @chenjiahan in [#9044](#9044)
- feat(plugin-less): support built-in CSS by @chenjiahan in [#9046](#9046)
- feat(core): enable Rspack's new cache by default by @ahabhgk in [#9047](#9047)
- feat(plugin-less): enable parallel compilation for common options by default by @chenjiahan in [#9060](#9060)
- feat(deps): update
@rspack/coreto 2.3.6 by @chenjiahan in [#9069](#9069)
Performance 🚀
- perf(core): use string templates for dev source map paths by @chenjiahan in [#9049](#9049)
- perf(plugin-svgr): defer loading SVGR dependencies by @chenjiahan in [#9064](#9064)
Bug Fixes 🐞
- fix(core): preserve custom property names in built-in CSS Modules by @chenjiahan in [#9050](#9050)
- fix(core): minify styles injected by built-in CSS by @chenjiahan in [#9054](#9054)
- fix(plugin-tailwindcss): support registering Tailwind before Sass with built-in CSS by @chenjiahan in [#9055](#9055)
- fix(core): honor
output.emitCss: falsewith built-in CSS by @chenjiahan in [#9057](#9057) - fix(core): honor
emitCss: truefor built-in stylesheet extraction by @chenjiahan in [#9058](#9058) - fix(core): use web CSS settings for built-in CSS transforms on Node by @chenjiahan in [#9061](#9061)
- fix(core): skip dependencies of non-emitted stylesheets by @chenjiahan in [#9065](#9065)
- fix(core): preserve container names across CSS Modules by @chenjiahan in [#9067](#9067)
- fix(core): ignore conflicting CSS order warnings in built-in CSS by @chenjiahan in [#9068](#9068)
- fix(types): align merged environment CSS with the input config by @chenjiahan in [#9070](#9070)
- fix(core): preserve grid names across CSS Modules by @chenjiahan in [#9072](#9072)
- fix(core): preserve custom idents across CSS Modules by @chenjiahan in [#9073](#9073)
Document 📖
- docs: update stylex setup to use
@stylexjs/unpluginby @tmkx in [#9053](#9053) - docs: clarify the Rspack new cache default in Rsbuild 2.3.8 by @chenjiahan in [#9051](#9051)
Other Changes
- release:
@rsbuild/plugin-sassv2.1.0 by @chenjiahan in [#9045](#9045) - release:
@rsbuild/plugin-lessv2.1.0 by @chenjiahan in [#9048](#9048) - test(e2e): re-enable persistent cache in HMR and build cases by @chenjiahan in [#9052](#9052)
- release:
@rsbuild/plugin-tailwindcssv2.0.4 by @chenjiahan in [#9056](#9056) - test(e2e): wait for restart watchers before editing files by @chenjiahan in [#9059](#9059)
- release:
@rsbuild/plugin-lessv2.2.0 by @chenjiahan in [#9062](#9062) - test(core): verify CSS Module class names across SSR builds by @chenjiahan in [#9063](#9063)
- release:
@rsbuild/plugin-svgrv2.0.6 by @chenjiahan in [#9066](#9066) - test: isolate the cache for HMR in none mode by @chenjiahan in [#9071](#9071)
- release: v2.3.8 by @chenjiahan in [#9074](#9074)