diff --git a/react-packager/src/DependencyResolver/DependencyGraph/ResolutionRequest.js b/react-packager/src/DependencyResolver/DependencyGraph/ResolutionRequest.js index 4d0d0632..3be6abd9 100644 --- a/react-packager/src/DependencyResolver/DependencyGraph/ResolutionRequest.js +++ b/react-packager/src/DependencyResolver/DependencyGraph/ResolutionRequest.js @@ -226,7 +226,7 @@ class ResolutionRequest { realModuleName => { const searchQueue = []; for (let currDir = path.dirname(fromModule.path); - currDir !== '/'; + currDir !== path.parse(fromModule.path).root; currDir = path.dirname(currDir)) { searchQueue.push( path.join(currDir, 'node_modules', realModuleName)