@babel/plugin-transform-modules-commonjs
Advanced tools
Comparing version 7.12.13 to 7.13.0
@@ -21,6 +21,7 @@ "use strict"; | ||
var _default = (0, _helperPluginUtils.declare)((api, options) => { | ||
var _api$assumption, _api$assumption2; | ||
api.assertVersion(7); | ||
const transformImportCall = (0, _utils.createDynamicImportTransform)(api); | ||
const { | ||
loose, | ||
strictNamespace = false, | ||
@@ -35,2 +36,4 @@ mjsStrictNamespace = true, | ||
} = options; | ||
const constantReexports = (_api$assumption = api.assumption("constantReexports")) != null ? _api$assumption : options.loose; | ||
const enumerableModuleMeta = (_api$assumption2 = api.assumption("enumerableModuleMeta")) != null ? _api$assumption2 : options.loose; | ||
@@ -149,3 +152,4 @@ if (typeof lazy !== "boolean" && typeof lazy !== "function" && (!Array.isArray(lazy) || !lazy.every(item => typeof item === "string"))) { | ||
exportName: "exports", | ||
loose, | ||
constantReexports, | ||
enumerableModuleMeta, | ||
strict, | ||
@@ -187,3 +191,3 @@ strictMode, | ||
headers.push(header); | ||
headers.push(...(0, _helperModuleTransforms.buildNamespaceInitStatements)(meta, metadata, loose)); | ||
headers.push(...(0, _helperModuleTransforms.buildNamespaceInitStatements)(meta, metadata, constantReexports)); | ||
} | ||
@@ -190,0 +194,0 @@ |
{ | ||
"name": "@babel/plugin-transform-modules-commonjs", | ||
"version": "7.12.13", | ||
"version": "7.13.0", | ||
"description": "This plugin transforms ES2015 modules to CommonJS", | ||
@@ -16,4 +16,4 @@ "repository": { | ||
"dependencies": { | ||
"@babel/helper-module-transforms": "^7.12.13", | ||
"@babel/helper-plugin-utils": "^7.12.13", | ||
"@babel/helper-module-transforms": "^7.13.0", | ||
"@babel/helper-plugin-utils": "^7.13.0", | ||
"@babel/helper-simple-access": "^7.12.13", | ||
@@ -29,3 +29,3 @@ "babel-plugin-dynamic-import-node": "^2.3.3" | ||
"devDependencies": { | ||
"@babel/core": "7.12.13", | ||
"@babel/core": "7.13.0", | ||
"@babel/helper-plugin-test-runner": "7.12.13", | ||
@@ -32,0 +32,0 @@ "@babel/plugin-syntax-object-rest-spread": "^7.8.0" |
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
9485
164