@babel/helper-module-imports
Advanced tools
Comparing version 7.0.0-rc.1 to 7.0.0-rc.2
@@ -33,9 +33,9 @@ "use strict"; | ||
class ImportBuilder { | ||
constructor(importedSource, scope, file) { | ||
constructor(importedSource, scope, hub) { | ||
this._statements = []; | ||
this._resultName = null; | ||
this._scope = null; | ||
this._file = null; | ||
this._hub = null; | ||
this._scope = scope; | ||
this._file = file; | ||
this._hub = hub; | ||
this._importedSource = importedSource; | ||
@@ -111,7 +111,7 @@ } | ||
defaultInterop() { | ||
return this._interop(this._file.addHelper("interopRequireDefault")); | ||
return this._interop(this._hub.addHelper("interopRequireDefault")); | ||
} | ||
wildcardInterop() { | ||
return this._interop(this._file.addHelper("interopRequireWildcard")); | ||
return this._interop(this._hub.addHelper("interopRequireWildcard")); | ||
} | ||
@@ -118,0 +118,0 @@ |
@@ -49,3 +49,3 @@ "use strict"; | ||
this._programScope = programPath.scope; | ||
this._file = programPath.hub.file; | ||
this._hub = programPath.hub; | ||
this._defaultOpts = this._applyDefaults(importedSource, opts, true); | ||
@@ -119,3 +119,3 @@ } | ||
const isModuleForBabel = isMod && importingInterop === "babel"; | ||
const builder = new _importBuilder.default(importedSource, this._programScope, this._file); | ||
const builder = new _importBuilder.default(importedSource, this._programScope, this._hub); | ||
@@ -122,0 +122,0 @@ if (importedType === "es6") { |
{ | ||
"name": "@babel/helper-module-imports", | ||
"version": "7.0.0-rc.1", | ||
"version": "7.0.0-rc.2", | ||
"description": "Babel helper functions for inserting module loads", | ||
@@ -11,8 +11,7 @@ "author": "Logan Smyth <loganfsmyth@gmail.com>", | ||
"dependencies": { | ||
"@babel/types": "7.0.0-rc.1", | ||
"lodash": "^4.17.10" | ||
"@babel/types": "7.0.0-rc.2" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "7.0.0-rc.1" | ||
"@babel/core": "7.0.0-rc.2" | ||
} | ||
} |
1
16189
+ Added@babel/types@7.0.0-rc.2(transitive)
- Removedlodash@^4.17.10
- Removed@babel/types@7.0.0-rc.1(transitive)
Updated@babel/types@7.0.0-rc.2