Skip to content

Commit 979215e

Browse files
authored
fix resolution of nested star imports (#2191)
Same as #1826 but for `import * from ..`
1 parent b7493ea commit 979215e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tsparser/src/parser/types/object.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,10 @@ impl NSData {
246246

247247
Reexport::All { import_path } => {
248248
if let Some(module) = ctx.resolve_module_import(curr_module, import_path) {
249-
if let Some(export) = module.data.get_named_export(ctx, curr_module, needle)
249+
if let Some(export) =
250+
module
251+
.data
252+
.get_named_export(ctx, &module.base.swc_file_path, needle)
250253
{
251254
return Some(export);
252255
}

0 commit comments

Comments
 (0)