don't register export declarations as a module binding
This commit is contained in:
parent
c4e43bdeea
commit
e2d673dafa
@ -543,7 +543,7 @@ export default class Scope {
|
||||
this.registerBinding("module", specifier);
|
||||
}
|
||||
} else if (path.isExportDeclaration()) {
|
||||
this.registerBinding("module", path.get("declaration"));
|
||||
this.registerDeclaration(path.get("declaration"));
|
||||
} else {
|
||||
this.registerBinding("unknown", path);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user