Skip to content

Commit e56b7fd

Browse files
authored
docs(core): clarify buildCache comment (#1278)
1 parent 9280122 commit e56b7fd

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

packages/core/src/core/plugins/basic.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,8 @@ export const pluginBasic: (context: RstestContext) => RsbuildPlugin = (
5252

5353
// Mirrors the pattern in packages/browser/src/hostController.ts:
5454
// only write `performance.buildCache` when the user has opted in.
55-
// Writing `performance.buildCache: false` explicitly causes Rsbuild
56-
// to set Rspack's `cache: false`, which disables Rspack's default
57-
// in-memory module cache and makes every build start cold from disk
58-
// (~4x slowdown on non-trivial test builds).
55+
// Leaving it undefined keeps the generated Rsbuild config aligned with
56+
// the user's original intent instead of materializing the default value.
5957
const buildCache = resolveProjectBuildCache({
6058
context,
6159
project,

0 commit comments

Comments
 (0)