@babel/plugin-proposal-export-default-from
Advanced tools
Comparing version 7.18.10 to 7.22.5
@@ -7,9 +7,5 @@ "use strict"; | ||
exports.default = void 0; | ||
var _helperPluginUtils = require("@babel/helper-plugin-utils"); | ||
var _pluginSyntaxExportDefaultFrom = require("@babel/plugin-syntax-export-default-from"); | ||
var _core = require("@babel/core"); | ||
var _default = (0, _helperPluginUtils.declare)(api => { | ||
@@ -33,3 +29,2 @@ api.assertVersion(7); | ||
} = specifiers.shift(); | ||
if (specifiers.every(s => _core.types.isExportSpecifier(s))) { | ||
@@ -39,16 +34,13 @@ specifiers.unshift(_core.types.exportSpecifier(_core.types.identifier("default"), exported)); | ||
} | ||
const nodes = [_core.types.exportNamedDeclaration(null, [_core.types.exportSpecifier(_core.types.identifier("default"), exported)], _core.types.cloneNode(source))]; | ||
if (specifiers.length >= 1) { | ||
nodes.push(node); | ||
} | ||
path.replaceWithMultiple(nodes); | ||
} | ||
} | ||
}; | ||
}); | ||
exports.default = _default; | ||
exports.default = _default; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@babel/plugin-proposal-export-default-from", | ||
"version": "7.18.10", | ||
"version": "7.22.5", | ||
"description": "Compile export default to ES2015", | ||
@@ -20,4 +20,4 @@ "repository": { | ||
"dependencies": { | ||
"@babel/helper-plugin-utils": "^7.18.9", | ||
"@babel/plugin-syntax-export-default-from": "^7.18.6" | ||
"@babel/helper-plugin-utils": "^7.22.5", | ||
"@babel/plugin-syntax-export-default-from": "^7.22.5" | ||
}, | ||
@@ -28,4 +28,4 @@ "peerDependencies": { | ||
"devDependencies": { | ||
"@babel/core": "^7.18.10", | ||
"@babel/helper-plugin-test-runner": "^7.18.6" | ||
"@babel/core": "^7.22.5", | ||
"@babel/helper-plugin-test-runner": "^7.22.5" | ||
}, | ||
@@ -32,0 +32,0 @@ "engines": { |
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
6650
5
41
72
1
1
1
14
+ Added@babel/code-frame@7.25.7(transitive)
+ Added@babel/compat-data@7.25.7(transitive)
+ Added@babel/core@7.25.7(transitive)
+ Added@babel/generator@7.25.7(transitive)
+ Added@babel/helper-compilation-targets@7.25.7(transitive)
+ Added@babel/helper-module-imports@7.25.7(transitive)
+ Added@babel/helper-module-transforms@7.25.7(transitive)
+ Added@babel/helper-plugin-utils@7.25.7(transitive)
+ Added@babel/helper-simple-access@7.25.7(transitive)
+ Added@babel/helper-string-parser@7.25.7(transitive)
+ Added@babel/helper-validator-identifier@7.25.7(transitive)
+ Added@babel/helper-validator-option@7.25.7(transitive)
+ Added@babel/helpers@7.25.7(transitive)
+ Added@babel/highlight@7.25.7(transitive)
+ Added@babel/parser@7.25.7(transitive)
+ Added@babel/plugin-syntax-export-default-from@7.25.7(transitive)
+ Added@babel/template@7.25.7(transitive)
+ Added@babel/traverse@7.25.7(transitive)
+ Added@babel/types@7.25.7(transitive)
+ Addedcaniuse-lite@1.0.30001667(transitive)
+ Addedelectron-to-chromium@1.5.32(transitive)
+ Addedjsesc@3.0.2(transitive)
- Removed@babel/code-frame@7.24.7(transitive)
- Removed@babel/compat-data@7.25.4(transitive)
- Removed@babel/core@7.25.2(transitive)
- Removed@babel/generator@7.25.6(transitive)
- Removed@babel/helper-compilation-targets@7.25.2(transitive)
- Removed@babel/helper-module-imports@7.24.7(transitive)
- Removed@babel/helper-module-transforms@7.25.2(transitive)
- Removed@babel/helper-plugin-utils@7.24.8(transitive)
- Removed@babel/helper-simple-access@7.24.7(transitive)
- Removed@babel/helper-string-parser@7.24.8(transitive)
- Removed@babel/helper-validator-identifier@7.24.7(transitive)
- Removed@babel/helper-validator-option@7.24.8(transitive)
- Removed@babel/helpers@7.25.6(transitive)
- Removed@babel/highlight@7.24.7(transitive)
- Removed@babel/parser@7.25.6(transitive)
- Removed@babel/plugin-syntax-export-default-from@7.24.7(transitive)
- Removed@babel/template@7.25.0(transitive)
- Removed@babel/traverse@7.25.6(transitive)
- Removed@babel/types@7.25.6(transitive)
- Removedcaniuse-lite@1.0.30001664(transitive)
- Removedelectron-to-chromium@1.5.29(transitive)
- Removedjsesc@2.5.2(transitive)