Skip to content

Commit c7ea917

Browse files
authored
fix: align get_nested_exports_info with webpack (#6351)
1 parent d90502c commit c7ea917

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

crates/rspack_core/src/exports_info.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,8 @@ impl ExportsInfoId {
276276
let info = self.get_read_only_export_info(&name[0], mg);
277277
if let Some(exports_info) = info.exports_info {
278278
return exports_info.get_nested_exports_info(Some(name[1..].to_vec()), mg);
279+
} else {
280+
return None;
279281
}
280282
}
281283
Some(*self)

0 commit comments

Comments
 (0)