github web-infra-dev/rsbuild v2.3.8

31 minutes ago

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 🎉

Performance 🚀

Bug Fixes 🐞

Document 📖

Other Changes

[Full changelog from v2.3.7 to v2.3.8](v2.3.7...1564bd6)

Don't miss a new rsbuild release

NewReleases is sending notifications on new releases.