File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
crates/rspack_core/src/compiler/module_executor Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -130,7 +130,10 @@ impl Task<ExecutorTaskContext> for ExecuteTask {
130
130
let mut has_error = false ;
131
131
132
132
while let Some ( m) = queue. pop_front ( ) {
133
- modules. insert ( m) ;
133
+ // to avoid duplicate calculations in https://github.com/web-infra-dev/rspack/issues/10987
134
+ if !modules. insert ( m) {
135
+ continue ;
136
+ }
134
137
let module = mg. module_by_identifier ( & m) . expect ( "should have module" ) ;
135
138
let build_info = module. build_info ( ) ;
136
139
execute_result
@@ -168,7 +171,6 @@ impl Task<ExecutorTaskContext> for ExecuteTask {
168
171
}
169
172
}
170
173
}
171
-
172
174
for dep_id in module. get_dependencies ( ) {
173
175
if !has_error && make_failed_dependencies. contains ( dep_id) {
174
176
let dep = mg. dependency_by_id ( dep_id) . expect ( "should dep exist" ) ;
You can’t perform that action at this time.
0 commit comments