metro-resolver
Advanced tools
Comparing version 0.80.4 to 0.80.5
{ | ||
"name": "metro-resolver", | ||
"version": "0.80.4", | ||
"version": "0.80.5", | ||
"description": "🚇 Implementation of Metro's resolution logic.", | ||
@@ -19,4 +19,4 @@ "main": "src", | ||
"devDependencies": { | ||
"metro": "0.80.4" | ||
"metro": "0.80.5" | ||
} | ||
} |
# metro-resolver | ||
🚇 [Metro](https://facebook.github.io/metro/) resolution logic | ||
🚇 [Metro](https://metrobundler.dev/) resolution logic |
@@ -102,3 +102,11 @@ "use strict"; | ||
} | ||
if (context.doesFileExist(filePath)) { | ||
if (context.unstable_getRealPath != null) { | ||
const maybeRealPath = context.unstable_getRealPath(filePath); | ||
if (maybeRealPath != null) { | ||
return { | ||
type: "sourceFile", | ||
filePath: maybeRealPath, | ||
}; | ||
} | ||
} else if (context.doesFileExist(filePath)) { | ||
return { | ||
@@ -105,0 +113,0 @@ type: "sourceFile", |
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
103202
1521