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 8c4c199Copy full SHA for 8c4c199
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 /^[.][.]?(?:[/\\]|$)/.test(filePath);
512
513
514
function normalizePath(modulePath: any | string) {
0 commit comments