@babel/plugin-transform-modules-systemjs
Advanced tools
Comparing version 7.24.7 to 7.25.0
@@ -9,3 +9,2 @@ "use strict"; | ||
var _helperPluginUtils = require("@babel/helper-plugin-utils"); | ||
var _helperHoistVariables = require("@babel/helper-hoist-variables"); | ||
var _core = require("@babel/core"); | ||
@@ -353,8 +352,12 @@ var _helperModuleTransforms = require("@babel/helper-module-transforms"); | ||
if (moduleName) moduleName = _core.types.stringLiteral(moduleName); | ||
(0, _helperHoistVariables.default)(path, (id, name, hasInit) => { | ||
{ | ||
var _path$scope, _path$scope$hoistVari; | ||
(_path$scope$hoistVari = (_path$scope = path.scope).hoistVariables) != null ? _path$scope$hoistVari : _path$scope.hoistVariables = require("@babel/traverse").Scope.prototype.hoistVariables; | ||
} | ||
path.scope.hoistVariables((id, hasInit) => { | ||
variableIds.push(id); | ||
if (!hasInit && name in exportMap) { | ||
for (const exported of exportMap[name]) { | ||
if (!hasInit && id.name in exportMap) { | ||
for (const exported of exportMap[id.name]) { | ||
exportNames.push(exported); | ||
exportValues.push(scope.buildUndefinedNode()); | ||
exportValues.push(_core.types.buildUndefinedNode()); | ||
} | ||
@@ -361,0 +364,0 @@ } |
{ | ||
"name": "@babel/plugin-transform-modules-systemjs", | ||
"version": "7.24.7", | ||
"version": "7.25.0", | ||
"description": "This plugin transforms ES2015 modules to SystemJS", | ||
@@ -16,6 +16,6 @@ "repository": { | ||
"dependencies": { | ||
"@babel/helper-hoist-variables": "^7.24.7", | ||
"@babel/helper-module-transforms": "^7.24.7", | ||
"@babel/helper-plugin-utils": "^7.24.7", | ||
"@babel/helper-validator-identifier": "^7.24.7" | ||
"@babel/helper-module-transforms": "^7.25.0", | ||
"@babel/helper-plugin-utils": "^7.24.8", | ||
"@babel/helper-validator-identifier": "^7.24.7", | ||
"@babel/traverse": "^7.25.0" | ||
}, | ||
@@ -29,5 +29,5 @@ "keywords": [ | ||
"devDependencies": { | ||
"@babel/core": "^7.24.7", | ||
"@babel/core": "^7.24.9", | ||
"@babel/helper-plugin-test-runner": "^7.24.7", | ||
"@babel/helper-transform-fixture-test-runner": "^7.24.7", | ||
"@babel/helper-transform-fixture-test-runner": "^7.25.0", | ||
"core-js": "^3.35.0" | ||
@@ -34,0 +34,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
420
131070
+ Added@babel/traverse@^7.25.0
- Removed@babel/helper-hoist-variables@7.24.7(transitive)