@babel/helper-module-transforms
Advanced tools
Comparing version 7.22.17 to 7.22.18
@@ -53,4 +53,9 @@ "use strict"; | ||
for (const [source, metadata] of sources) { | ||
if (metadata.importsNamespace.size > 0) { | ||
metadata.name = metadata.importsNamespace.values().next().value; | ||
const { | ||
importsNamespace, | ||
imports | ||
} = metadata; | ||
if (importsNamespace.size > 0 && imports.size === 0) { | ||
const [nameOfnamespace] = importsNamespace; | ||
metadata.name = nameOfnamespace; | ||
} | ||
@@ -57,0 +62,0 @@ const resolvedInterop = resolveImportInterop(importInterop, source, filename); |
{ | ||
"name": "@babel/helper-module-transforms", | ||
"version": "7.22.17", | ||
"version": "7.22.18", | ||
"description": "Babel helper functions for implementing ES6 module transformations", | ||
@@ -22,7 +22,7 @@ "author": "The Babel Team (https://babel.dev/team)", | ||
"@babel/helper-split-export-declaration": "^7.22.6", | ||
"@babel/helper-validator-identifier": "^7.22.15" | ||
"@babel/helper-validator-identifier": "^7.22.18" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.22.17", | ||
"@babel/traverse": "^7.22.17" | ||
"@babel/core": "^7.22.18", | ||
"@babel/traverse": "^7.22.18" | ||
}, | ||
@@ -29,0 +29,0 @@ "peerDependencies": { |
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
148865
1193