We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2718ae7 commit 08d209dCopy full SHA for 08d209d
crates/rspack_core/src/compiler/make/cutout/fix_issuers.rs
@@ -162,9 +162,11 @@ impl FixIssuers {
162
) {
163
let module_graph = artifact.get_module_graph();
164
for dep_id in dep_ids {
165
- let conn = module_graph
166
- .connection_by_dependency_id(dep_id)
167
- .expect("should have connection");
+ let Some(conn) = module_graph.connection_by_dependency_id(dep_id) else {
+ // maybe factorize failed dep_id
+ continue;
168
+ };
169
+
170
let parent_mid = &conn.original_module_identifier;
171
let child_mid = conn.module_identifier();
172
// peresistent cache recovery module graph will lose some module and mgm.
0 commit comments