add scope to addImport importSpecifier call
This commit is contained in:
parent
aaf29ddd82
commit
cae80d6e9b
@ -335,7 +335,7 @@ export default class File {
|
||||
}
|
||||
|
||||
if (this.transformers["es6.modules"].canTransform()) {
|
||||
this.moduleFormatter.importSpecifier(specifiers[0], declar, this.dynamicImports);
|
||||
this.moduleFormatter.importSpecifier(specifiers[0], declar, this.dynamicImports, this.scope);
|
||||
this.moduleFormatter.hasLocalImports = true;
|
||||
} else {
|
||||
this.dynamicImports.push(declar);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user