@babel/plugin-transform-modules-systemjs
Advanced tools
+13
-19
@@ -139,5 +139,3 @@ "use strict"; | ||
| if (!this.file.has("@babel/plugin-proposal-dynamic-import")) { | ||
| { | ||
| console.warn(MISSING_PLUGIN_WARNING); | ||
| } | ||
| console.warn(MISSING_PLUGIN_WARNING); | ||
| } | ||
@@ -170,2 +168,3 @@ } else { | ||
| exit(path, state) { | ||
| var _path$scope, _path$scope$hoistVari; | ||
| const scope = path.scope; | ||
@@ -353,6 +352,3 @@ const exportIdent = scope.generateUid("export"); | ||
| if (moduleName) moduleName = _core.types.stringLiteral(moduleName); | ||
| { | ||
| 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$hoistVari = (_path$scope = path.scope).hoistVariables) != null ? _path$scope$hoistVari : _path$scope.hoistVariables = require("@babel/traverse").Scope.prototype.hoistVariables; | ||
| path.scope.hoistVariables((id, hasInit) => { | ||
@@ -382,14 +378,12 @@ variableIds.push(id); | ||
| let hasTLA = false; | ||
| { | ||
| path.traverse({ | ||
| AwaitExpression(path) { | ||
| hasTLA = true; | ||
| path.stop(); | ||
| }, | ||
| Function(path) { | ||
| path.skip(); | ||
| }, | ||
| noScope: true | ||
| }); | ||
| } | ||
| path.traverse({ | ||
| AwaitExpression(path) { | ||
| hasTLA = true; | ||
| path.stop(); | ||
| }, | ||
| Function(path) { | ||
| path.skip(); | ||
| }, | ||
| noScope: true | ||
| }); | ||
| path.node.body = [buildTemplate({ | ||
@@ -396,0 +390,0 @@ SYSTEM_REGISTER: _core.types.memberExpression(_core.types.identifier(systemGlobal), _core.types.identifier("register")), |
+7
-7
| { | ||
| "name": "@babel/plugin-transform-modules-systemjs", | ||
| "version": "7.28.5", | ||
| "version": "7.29.0", | ||
| "description": "This plugin transforms ES2015 modules to SystemJS", | ||
@@ -16,6 +16,6 @@ "repository": { | ||
| "dependencies": { | ||
| "@babel/helper-module-transforms": "^7.28.3", | ||
| "@babel/helper-plugin-utils": "^7.27.1", | ||
| "@babel/helper-module-transforms": "^7.28.6", | ||
| "@babel/helper-plugin-utils": "^7.28.6", | ||
| "@babel/helper-validator-identifier": "^7.28.5", | ||
| "@babel/traverse": "^7.28.5" | ||
| "@babel/traverse": "^7.29.0" | ||
| }, | ||
@@ -29,6 +29,6 @@ "keywords": [ | ||
| "devDependencies": { | ||
| "@babel/core": "^7.28.5", | ||
| "@babel/core": "^7.29.0", | ||
| "@babel/helper-plugin-test-runner": "^7.27.1", | ||
| "@babel/helper-transform-fixture-test-runner": "^7.28.5", | ||
| "core-js": "^3.35.0" | ||
| "@babel/helper-transform-fixture-test-runner": "^7.28.6", | ||
| "core-js": "^3.48.0" | ||
| }, | ||
@@ -35,0 +35,0 @@ "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-modules-systemjs", |
Sorry, the diff of this file is not supported yet
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
66908
-0.19%400
-1.48%