@babel/helper-module-transforms
Advanced tools
Comparing version 7.17.12 to 7.18.0
@@ -83,2 +83,3 @@ "use strict"; | ||
esNamespaceOnly, | ||
filename, | ||
constantReexports = loose, | ||
@@ -97,3 +98,4 @@ enumerableModuleMeta = loose, | ||
lazy, | ||
esNamespaceOnly | ||
esNamespaceOnly, | ||
filename | ||
}); | ||
@@ -100,0 +102,0 @@ |
@@ -33,5 +33,5 @@ "use strict"; | ||
function resolveImportInterop(importInterop, source) { | ||
function resolveImportInterop(importInterop, source, filename) { | ||
if (typeof importInterop === "function") { | ||
return validateImportInteropOption(importInterop(source)); | ||
return validateImportInteropOption(importInterop(source, filename)); | ||
} | ||
@@ -46,3 +46,4 @@ | ||
lazy = false, | ||
esNamespaceOnly = false | ||
esNamespaceOnly = false, | ||
filename | ||
}) { | ||
@@ -70,3 +71,3 @@ if (!exportName) { | ||
const resolvedInterop = resolveImportInterop(importInterop, metadata.source); | ||
const resolvedInterop = resolveImportInterop(importInterop, metadata.source, filename); | ||
@@ -73,0 +74,0 @@ if (resolvedInterop === "none") { |
{ | ||
"name": "@babel/helper-module-transforms", | ||
"version": "7.17.12", | ||
"version": "7.18.0", | ||
"description": "Babel helper functions for implementing ES6 module transformations", | ||
@@ -24,4 +24,4 @@ "author": "The Babel Team (https://babel.dev/team)", | ||
"@babel/template": "^7.16.7", | ||
"@babel/traverse": "^7.17.12", | ||
"@babel/types": "^7.17.12" | ||
"@babel/traverse": "^7.18.0", | ||
"@babel/types": "^7.18.0" | ||
}, | ||
@@ -28,0 +28,0 @@ "engines": { |
41384
1099
Updated@babel/traverse@^7.18.0
Updated@babel/types@^7.18.0