@babel/plugin-transform-runtime
Advanced tools
Comparing version 7.5.0 to 7.5.5
@@ -345,2 +345,3 @@ "use strict"; | ||
if (!path.isReferenced()) return; | ||
if (path.node.computed) return; | ||
const { | ||
@@ -357,3 +358,3 @@ node | ||
if (path.scope.getBindingIdentifier(name)) return; | ||
path.replaceWith(_core().types.memberExpression(this.addDefaultImport(`${modulePath}/${corejsRoot}/${BuiltIns[name].path}`, name), node.property, node.computed)); | ||
path.replaceWith(_core().types.memberExpression(this.addDefaultImport(`${modulePath}/${corejsRoot}/${BuiltIns[name].path}`, name), node.property)); | ||
} | ||
@@ -360,0 +361,0 @@ |
{ | ||
"name": "@babel/plugin-transform-runtime", | ||
"version": "7.5.0", | ||
"version": "7.5.5", | ||
"description": "Externalise references to helpers and builtins, automatically polyfilling your code without polluting globals", | ||
@@ -24,12 +24,12 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-runtime", | ||
"devDependencies": { | ||
"@babel/core": "^7.5.0", | ||
"@babel/core": "^7.5.5", | ||
"@babel/helper-plugin-test-runner": "^7.0.0", | ||
"@babel/helpers": "^7.5.0", | ||
"@babel/plugin-transform-runtime": "^7.5.0", | ||
"@babel/preset-env": "^7.5.0", | ||
"@babel/runtime": "^7.5.0", | ||
"@babel/helpers": "^7.5.5", | ||
"@babel/plugin-transform-runtime": "^7.5.5", | ||
"@babel/preset-env": "^7.5.5", | ||
"@babel/runtime": "^7.5.5", | ||
"@babel/template": "^7.4.4", | ||
"@babel/types": "7.0.0-beta.53" | ||
}, | ||
"gitHead": "49da9a07c81156e997e60146eb001ea77b7044c4" | ||
"gitHead": "0407f034f09381b95e9cabefbf6b176c76485a43" | ||
} |
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
39258
1431