@babel/helper-module-transforms
Advanced tools
Comparing version 7.22.19 to 7.22.20
@@ -9,10 +9,6 @@ "use strict"; | ||
{ | ||
{ | ||
{ | ||
exports.getDynamicImportSource = function getDynamicImportSource(node) { | ||
const [source] = node.arguments; | ||
return _core.types.isStringLiteral(source) || _core.types.isTemplateLiteral(source) ? source : _core.template.expression.ast`\`\${${source}}\``; | ||
}; | ||
} | ||
} | ||
exports.getDynamicImportSource = function getDynamicImportSource(node) { | ||
const [source] = node.arguments; | ||
return _core.types.isStringLiteral(source) || _core.types.isTemplateLiteral(source) ? source : _core.template.expression.ast`\`\${${source}}\``; | ||
}; | ||
} | ||
@@ -19,0 +15,0 @@ function buildDynamicImport(node, deferToThen, wrapWithPromise, builder) { |
@@ -70,7 +70,3 @@ "use strict"; | ||
{ | ||
{ | ||
{ | ||
exports.getDynamicImportSource = require("./dynamic-import").getDynamicImportSource; | ||
} | ||
} | ||
exports.getDynamicImportSource = require("./dynamic-import").getDynamicImportSource; | ||
} | ||
@@ -77,0 +73,0 @@ function rewriteModuleStatementsAndPrepareHeader(path, { |
{ | ||
"name": "@babel/helper-module-transforms", | ||
"version": "7.22.19", | ||
"version": "7.22.20", | ||
"description": "Babel helper functions for implementing ES6 module transformations", | ||
@@ -18,11 +18,11 @@ "author": "The Babel Team (https://babel.dev/team)", | ||
"dependencies": { | ||
"@babel/helper-environment-visitor": "^7.22.5", | ||
"@babel/helper-environment-visitor": "^7.22.20", | ||
"@babel/helper-module-imports": "^7.22.15", | ||
"@babel/helper-simple-access": "^7.22.5", | ||
"@babel/helper-split-export-declaration": "^7.22.6", | ||
"@babel/helper-validator-identifier": "^7.22.19" | ||
"@babel/helper-validator-identifier": "^7.22.20" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.22.19", | ||
"@babel/traverse": "^7.22.19" | ||
"@babel/core": "^7.22.20", | ||
"@babel/traverse": "^7.22.20" | ||
}, | ||
@@ -29,0 +29,0 @@ "peerDependencies": { |
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
148656
1185