MCPcopy
hub / github.com/web-infra-dev/rsbuild / getBuildConfig

Function getBuildConfig

e2e/cases/cache/cache-digest/index.test.ts:15–31  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

13 await fse.remove(cacheDirectory);
14
15 const getBuildConfig = (input: string) => ({
16 config: {
17 tools: {
18 bundlerChain: (chain) => {
19 if (input === 'foo') {
20 chain.resolve.extensions.prepend('.test.js');
21 }
22 },
23 },
24 performance: {
25 buildCache: {
26 cacheDirectory,
27 cacheDigest: [input],
28 },
29 },
30 } as RsbuildConfig,
31 });
32
33 // first build without cache
34 let rsbuild = await build(getBuildConfig(''));

Callers 1

index.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…