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 f36bef2 commit 470ad0fCopy full SHA for 470ad0f
analysis/src/ModuleResolution.ml
@@ -1,5 +1,5 @@
1
let rec resolveNodeModulePath ~startPath name =
2
let path = Filename.concat (Filename.concat startPath "node_modules") name in
3
if Files.exists path then Some path
4
- else if startPath = "/" then None
+ else if Filename.dirname startPath = startPath then None
5
else resolveNodeModulePath ~startPath:(Filename.dirname startPath) name
0 commit comments