babel-plugin-transform-export-extensions
Advanced tools
Comparing version 7.0.0-alpha.15 to 7.0.0-alpha.16
@@ -10,2 +10,3 @@ "use strict"; | ||
var first = node.specifiers[0]; | ||
if (!t.isExportNamespaceSpecifier(first) && !t.isExportDefaultSpecifier(first)) { | ||
@@ -17,4 +18,4 @@ return; | ||
var uid = scope.generateUidIdentifier(specifier.exported.name); | ||
var newSpecifier = void 0; | ||
var newSpecifier = void 0; | ||
if (t.isExportNamespaceSpecifier(specifier)) { | ||
@@ -28,3 +29,2 @@ newSpecifier = t.importNamespaceSpecifier(uid); | ||
nodes.push(t.exportNamedDeclaration(null, [t.exportSpecifier(uid, specifier.exported)])); | ||
build(node, nodes, scope); | ||
@@ -35,3 +35,2 @@ } | ||
inherits: _babelPluginSyntaxExportExtensions2.default, | ||
visitor: { | ||
@@ -41,3 +40,2 @@ ExportNamedDeclaration: function ExportNamedDeclaration(path) { | ||
scope = path.scope; | ||
var nodes = []; | ||
@@ -50,2 +48,3 @@ build(node, nodes, scope); | ||
} | ||
path.replaceWithMultiple(nodes); | ||
@@ -52,0 +51,0 @@ } |
{ | ||
"name": "babel-plugin-transform-export-extensions", | ||
"version": "7.0.0-alpha.15", | ||
"version": "7.0.0-alpha.16", | ||
"description": "Compile export extensions to ES2015", | ||
@@ -12,7 +12,7 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-export-extensions", | ||
"dependencies": { | ||
"babel-plugin-syntax-export-extensions": "7.0.0-alpha.15" | ||
"babel-plugin-syntax-export-extensions": "7.0.0-alpha.16" | ||
}, | ||
"devDependencies": { | ||
"babel-helper-plugin-test-runner": "7.0.0-alpha.15" | ||
"babel-helper-plugin-test-runner": "7.0.0-alpha.16" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3007
+ Addedbabel-plugin-syntax-export-extensions@7.0.0-alpha.16(transitive)
- Removedbabel-plugin-syntax-export-extensions@7.0.0-alpha.15(transitive)