From cae80d6e9bc53bcbae28f61ae2de67e9de662bdb Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Tue, 16 Jun 2015 00:42:13 +0100 Subject: [PATCH] add scope to addImport importSpecifier call --- src/babel/transformation/file/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/babel/transformation/file/index.js b/src/babel/transformation/file/index.js index 55937edb2a..a7202f95ad 100644 --- a/src/babel/transformation/file/index.js +++ b/src/babel/transformation/file/index.js @@ -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);