diff --git a/packages/metro-resolver/src/resolve.js b/packages/metro-resolver/src/resolve.js index 068ceee2a8..e314b29b16 100644 --- a/packages/metro-resolver/src/resolve.js +++ b/packages/metro-resolver/src/resolve.js @@ -508,7 +508,7 @@ function resolveWindowsPath(modulePath: string) { } function isRelativeImport(filePath: string) { - return /^[.][.]?(?:[/]|$)/.test(filePath); + return /^[.][.]?(?:[/\\]|$)/.test(filePath); } function normalizePath(modulePath: any | string) {