From 087ce41b569b8f49db1dc580fb34db379fd845b7 Mon Sep 17 00:00:00 2001 From: DengYun Date: Tue, 7 Jul 2015 15:26:10 +0800 Subject: [PATCH] bugfix: fix infinite loop on windows. --- .../src/DependencyResolver/DependencyGraph/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packager/react-packager/src/DependencyResolver/DependencyGraph/index.js b/packager/react-packager/src/DependencyResolver/DependencyGraph/index.js index 42c1a485f33044..4169ea2b9086d2 100644 --- a/packager/react-packager/src/DependencyResolver/DependencyGraph/index.js +++ b/packager/react-packager/src/DependencyResolver/DependencyGraph/index.js @@ -280,7 +280,7 @@ class DependencyGraph { realModuleName => { const searchQueue = []; for (let currDir = path.dirname(fromModule.path); - currDir !== '/'; + path.dirname(currDir) != currDir; currDir = path.dirname(currDir)) { searchQueue.push( path.join(currDir, 'node_modules', realModuleName)