@babel/plugin-proposal-export-namespace-from
Advanced tools
Comparing version 7.18.9 to 7.21.4-esm
@@ -7,9 +7,5 @@ "use strict"; | ||
exports.default = void 0; | ||
var _helperPluginUtils = require("@babel/helper-plugin-utils"); | ||
var _pluginSyntaxExportNamespaceFrom = require("@babel/plugin-syntax-export-namespace-from"); | ||
var _core = require("@babel/core"); | ||
var _default = (0, _helperPluginUtils.declare)(api => { | ||
@@ -23,3 +19,2 @@ api.assertVersion(7); | ||
var _exported$name; | ||
const { | ||
@@ -35,7 +30,5 @@ node, | ||
const nodes = []; | ||
if (index === 1) { | ||
nodes.push(_core.types.exportNamedDeclaration(null, [specifiers.shift()], node.source)); | ||
} | ||
const specifier = specifiers.shift(); | ||
@@ -47,15 +40,13 @@ const { | ||
nodes.push(_core.types.importDeclaration([_core.types.importNamespaceSpecifier(uid)], _core.types.cloneNode(node.source)), _core.types.exportNamedDeclaration(null, [_core.types.exportSpecifier(_core.types.cloneNode(uid), exported)])); | ||
if (node.specifiers.length >= 1) { | ||
nodes.push(node); | ||
} | ||
const [importDeclaration] = path.replaceWithMultiple(nodes); | ||
path.scope.registerDeclaration(importDeclaration); | ||
} | ||
} | ||
}; | ||
}); | ||
exports.default = _default; | ||
exports.default = _default; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@babel/plugin-proposal-export-namespace-from", | ||
"version": "7.18.9", | ||
"version": "7.21.4-esm", | ||
"description": "Compile export namespace to ES2015", | ||
@@ -19,11 +19,11 @@ "repository": { | ||
"dependencies": { | ||
"@babel/helper-plugin-utils": "^7.18.9", | ||
"@babel/helper-plugin-utils": "^7.21.4-esm", | ||
"@babel/plugin-syntax-export-namespace-from": "^7.8.3" | ||
}, | ||
"peerDependencies": { | ||
"@babel/core": "^7.0.0-0" | ||
"@babel/core": "^7.0.0-0 || 7.21.4-esm" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.18.9", | ||
"@babel/helper-plugin-test-runner": "^7.18.6" | ||
"@babel/core": "^7.21.4-esm", | ||
"@babel/helper-plugin-test-runner": "^7.21.4-esm" | ||
}, | ||
@@ -30,0 +30,0 @@ "homepage": "https://babel.dev/docs/en/next/babel-plugin-proposal-export-namespace-from", |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
8140
6
46
1
+ Addedelectron-to-chromium@1.4.814(transitive)
- Removedelectron-to-chromium@1.4.812(transitive)