We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
isRelativeImport
1 parent 3050e27 commit 4423f54Copy full SHA for 4423f54
packages/metro-resolver/src/resolve.js
@@ -508,7 +508,7 @@ function resolveWindowsPath(modulePath: string) {
508
}
509
510
function isRelativeImport(filePath: string) {
511
- return /^[.][.]?(?:[/]|$)/.test(filePath);
+ return !path.isAbsolute(filePath);
512
513
514
function normalizePath(modulePath: any | string) {
0 commit comments