@babel/plugin-transform-modules-commonjs
Advanced tools
Comparing version 7.18.6 to 7.19.6
@@ -16,3 +16,3 @@ "use strict"; | ||
var _utils = require("babel-plugin-dynamic-import-node/utils"); | ||
var _dynamicImport = require("./dynamic-import"); | ||
@@ -23,3 +23,2 @@ var _default = (0, _helperPluginUtils.declare)((api, options) => { | ||
api.assertVersion(7); | ||
const transformImportCall = (0, _utils.createDynamicImportTransform)(api); | ||
const { | ||
@@ -129,3 +128,3 @@ strictNamespace = false, | ||
if (!this.file.has("@babel/plugin-proposal-dynamic-import")) return; | ||
if (!path.get("callee").isImport()) return; | ||
if (!_core.types.isImport(path.node.callee)) return; | ||
let { | ||
@@ -139,3 +138,3 @@ scope | ||
transformImportCall(this, path.get("callee")); | ||
(0, _dynamicImport.transformDynamicImport)(path, noInterop, this.file); | ||
}, | ||
@@ -226,2 +225,4 @@ | ||
exports.default = _default; | ||
exports.default = _default; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@babel/plugin-transform-modules-commonjs", | ||
"version": "7.18.6", | ||
"version": "7.19.6", | ||
"description": "This plugin transforms ES2015 modules to CommonJS", | ||
@@ -16,6 +16,5 @@ "repository": { | ||
"dependencies": { | ||
"@babel/helper-module-transforms": "^7.18.6", | ||
"@babel/helper-plugin-utils": "^7.18.6", | ||
"@babel/helper-simple-access": "^7.18.6", | ||
"babel-plugin-dynamic-import-node": "^2.3.3" | ||
"@babel/helper-module-transforms": "^7.19.6", | ||
"@babel/helper-plugin-utils": "^7.19.0", | ||
"@babel/helper-simple-access": "^7.19.4" | ||
}, | ||
@@ -29,3 +28,3 @@ "keywords": [ | ||
"devDependencies": { | ||
"@babel/core": "^7.18.6", | ||
"@babel/core": "^7.19.6", | ||
"@babel/helper-plugin-test-runner": "^7.18.6", | ||
@@ -32,0 +31,0 @@ "@babel/plugin-external-helpers": "^7.18.6", |
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
31998
4
7
208
- Removedbabel-plugin-dynamic-import-node@2.3.3(transitive)
- Removedcall-bind@1.0.7(transitive)
- Removeddefine-data-property@1.1.4(transitive)
- Removeddefine-properties@1.2.1(transitive)
- Removedes-define-property@1.0.0(transitive)
- Removedes-errors@1.3.0(transitive)
- Removedfunction-bind@1.1.2(transitive)
- Removedget-intrinsic@1.2.4(transitive)
- Removedgopd@1.0.1(transitive)
- Removedhas-property-descriptors@1.0.2(transitive)
- Removedhas-proto@1.0.3(transitive)
- Removedhas-symbols@1.0.3(transitive)
- Removedhasown@2.0.2(transitive)
- Removedobject-keys@1.1.1(transitive)
- Removedobject.assign@4.1.5(transitive)
- Removedset-function-length@1.2.2(transitive)