diff --git a/react-packager/src/node-haste/DependencyGraph/ResolutionRequest.js b/react-packager/src/node-haste/DependencyGraph/ResolutionRequest.js index 7a174c5e..9d2dd39e 100644 --- a/react-packager/src/node-haste/DependencyGraph/ResolutionRequest.js +++ b/react-packager/src/node-haste/DependencyGraph/ResolutionRequest.js @@ -533,7 +533,7 @@ function resolveKeyWithPromise([key, promise]) { } function isRelativeImport(path) { - return /^[.][.]?[/]/.test(path); + return /^[.][.]?(?:[/]|$)/.test(path); } module.exports = ResolutionRequest;