We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fcd41e3 commit af042a9Copy full SHA for af042a9
index.js
@@ -26,7 +26,10 @@ function requireUp(filename, cwd) {
26
try {
27
return require(filepath);
28
} catch(error) {
29
- // Ignore (will recurse to parent directory)
+ // Ignore OS errors (will recurse to parent directory)
30
+ if (error.code !== 'MODULE_NOT_FOUND') {
31
+ throw error;
32
+ }
33
}
34
35
var dir = path.dirname(cwd);
0 commit comments