Skip to content

Commit 31075a3

Browse files
authored
refactor: disable incremental buildChunkGraph by default (#11533)
1 parent c1ef1b5 commit 31075a3

File tree

12 files changed

+53
-3
lines changed

12 files changed

+53
-3
lines changed

packages/rspack-test-tools/tests/__snapshots__/Defaults.test.js.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Object {
2323
css: undefined,
2424
futureDefaults: false,
2525
incremental: Object {
26-
buildChunkGraph: true,
26+
buildChunkGraph: false,
2727
chunkIds: true,
2828
chunksHashes: true,
2929
chunksRender: true,

packages/rspack-test-tools/tests/watchCases/build-chunk-graph/available-modules-change/rspack.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,10 @@ module.exports = {
33
optimization: {
44
splitChunks: false,
55
sideEffects: false
6+
},
7+
experiments: {
8+
incremental: {
9+
buildChunkGraph: true
10+
}
611
}
712
};

packages/rspack-test-tools/tests/watchCases/build-chunk-graph/basic/rspack.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,10 @@
22
module.exports = {
33
optimization: {
44
splitChunks: false
5+
},
6+
experiments: {
7+
incremental: {
8+
buildChunkGraph: true
9+
}
510
}
611
};

packages/rspack-test-tools/tests/watchCases/build-chunk-graph/chunk-add-then-change-ava-module/rspack.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,10 @@ module.exports = {
33
optimization: {
44
splitChunks: false,
55
sideEffects: false
6+
},
7+
experiments: {
8+
incremental: {
9+
buildChunkGraph: true
10+
}
611
}
712
};

packages/rspack-test-tools/tests/watchCases/build-chunk-graph/chunk-modify/rspack.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,10 @@ module.exports = {
33
optimization: {
44
splitChunks: false,
55
sideEffects: false
6+
},
7+
experiments: {
8+
incremental: {
9+
buildChunkGraph: true
10+
}
611
}
712
};

packages/rspack-test-tools/tests/watchCases/build-chunk-graph/chunk-remove/rspack.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,10 @@ module.exports = {
33
optimization: {
44
splitChunks: false,
55
sideEffects: false
6+
},
7+
experiments: {
8+
incremental: {
9+
buildChunkGraph: true
10+
}
611
}
712
};

packages/rspack-test-tools/tests/watchCases/build-chunk-graph/keep-order-index/rspack.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ module.exports = {
1111
}
1212
]
1313
},
14+
experiments: {
15+
incremental: {
16+
buildChunkGraph: true
17+
}
18+
},
1419
optimization: {
1520
splitChunks: {
1621
cacheGroups: {

packages/rspack-test-tools/tests/watchCases/build-chunk-graph/pre-order-index/rspack.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,10 @@
22
module.exports = {
33
optimization: {
44
splitChunks: false
5+
},
6+
experiments: {
7+
incremental: {
8+
buildChunkGraph: true
9+
}
510
}
611
};

packages/rspack-test-tools/tests/watchCases/build-chunk-graph/runtime-chunk-recover-error/rspack.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ const config = (index, parallelCodeSplitting) => ({
1010
runtimeChunk: "single"
1111
},
1212
experiments: {
13-
parallelCodeSplitting
13+
parallelCodeSplitting,
14+
incremental: {
15+
buildChunkGraph: true
16+
}
1417
}
1518
});
1619

packages/rspack-test-tools/tests/watchCases/build-chunk-graph/runtime-chunk/rspack.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,10 @@ module.exports = {
55
},
66
optimization: {
77
runtimeChunk: true
8+
},
9+
experiments: {
10+
incremental: {
11+
buildChunkGraph: true
12+
}
813
}
914
};

0 commit comments

Comments
 (0)