File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
crates/rspack_core/src/build_chunk_graph
packages/rspack-test-tools/tests/cacheCases/common/basic Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -1766,7 +1766,13 @@ pub fn code_split(compilation: &mut Compilation) -> Result<()> {
1766
1766
1767
1767
let module_graph: & ModuleGraph < ' _ > = & compilation. get_module_graph ( ) ;
1768
1768
1769
- let mut splitter = if let Some ( mutations) = mutations {
1769
+ let mut splitter = if !compilation
1770
+ . code_splitting_cache
1771
+ . new_code_splitter
1772
+ . module_ordinal
1773
+ . is_empty ( )
1774
+ && let Some ( mutations) = mutations
1775
+ {
1770
1776
let mut affected = mutations. get_affected_modules_with_module_graph ( module_graph) ;
1771
1777
let removed = mutations. iter ( ) . filter_map ( |mutation| match mutation {
1772
1778
Mutation :: ModuleRemove { module } => Some ( * module) ,
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ module.exports = {
4
4
experiments : {
5
5
cache : {
6
6
type : "persistent"
7
- }
7
+ } ,
8
+ incremental : true
8
9
}
9
10
} ;
You can’t perform that action at this time.
0 commit comments