Skip to content

Commit

Permalink
Fixing the packager infinite loop on Windows
Browse files Browse the repository at this point in the history
The issue here facebook#2787

The root path '/' dosn't match windows root path
  • Loading branch information
mqli committed Sep 17, 2015
1 parent 5e46f44 commit f5314af
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f5314af

Please sign in to comment.