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

Function getBuildConfig

e2e/cases/cache/build-dependencies/index.test.ts:18–37  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

16 await fse.remove(cacheDirectory);
17
18 const getBuildConfig = (input: string) => {
19 fs.writeFileSync(testDepsPath, input);
20 return {
21 config: {
22 tools: {
23 bundlerChain: (chain) => {
24 if (input === 'foo') {
25 chain.resolve.extensions.prepend('.test.js');
26 }
27 },
28 },
29 performance: {
30 buildCache: {
31 cacheDirectory,
32 buildDependencies: [testDepsPath],
33 },
34 },
35 } as RsbuildConfig,
36 };
37 };
38
39 // first build without cache
40 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…