metro-resolver
Advanced tools
Comparing version 0.76.4 to 0.76.5
{ | ||
"name": "metro-resolver", | ||
"version": "0.76.4", | ||
"version": "0.76.5", | ||
"description": "🚇 Implementation of Metro's resolution logic.", | ||
@@ -5,0 +5,0 @@ "main": "src", |
@@ -256,6 +256,20 @@ /** | ||
if (pkg != null && exportsField != null) { | ||
let conditionNamesOverride = context.unstable_conditionNames; | ||
// HACK!: Do not assert the "import" condition for `@babel/runtime`. This | ||
// is a workaround for ESM <-> CJS interop, as we need the CJS versions of | ||
// `@babel/runtime` helpers. | ||
// TODO(T154157178): Remove with better "require"/"import" solution | ||
if (pkg.packageJson.name === "@babel/runtime") { | ||
conditionNamesOverride = context.unstable_conditionNames.filter( | ||
(condition) => condition !== "import" | ||
); | ||
} | ||
try { | ||
const packageExportsResult = (0, | ||
_PackageExportsResolve.resolvePackageTargetFromExports)( | ||
context, | ||
{ | ||
...context, | ||
unstable_conditionNames: conditionNamesOverride, | ||
}, | ||
pkg.rootPath, | ||
@@ -262,0 +276,0 @@ modulePath, |
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
101522
1508