mirror of https://github.com/status-im/metro.git
Fixing the packager infinite loop on Windows
Summary: The issue here https://github.com/facebook/react-native/issues/2787 The root path '/' dosn't match windows root path Closes https://github.com/facebook/react-native/pull/2789 Reviewed By: @svcscm Differential Revision: D2452718 Pulled By: @martinbigio
This commit is contained in:
parent
b1943d588c
commit
d7dadf9a5c
|
@ -226,7 +226,7 @@ class ResolutionRequest {
|
||||||
realModuleName => {
|
realModuleName => {
|
||||||
const searchQueue = [];
|
const searchQueue = [];
|
||||||
for (let currDir = path.dirname(fromModule.path);
|
for (let currDir = path.dirname(fromModule.path);
|
||||||
currDir !== '/';
|
currDir !== path.parse(fromModule.path).root;
|
||||||
currDir = path.dirname(currDir)) {
|
currDir = path.dirname(currDir)) {
|
||||||
searchQueue.push(
|
searchQueue.push(
|
||||||
path.join(currDir, 'node_modules', realModuleName)
|
path.join(currDir, 'node_modules', realModuleName)
|
||||||
|
|
Loading…
Reference in New Issue