Fix bug when resolving basePath

Former-commit-id: 361e1eef7ff766c0cd395bdbc75dbf1ed5689ce2
This commit is contained in:
Jarred Sumner
2021-08-08 16:41:00 -07:00
parent 0babc4037b
commit 687b22908f

View File

@@ -119,7 +119,8 @@ pub const Result = struct {
return false;
}
return r.is_from_node_modules;
// If we rely just on isPackagePath, we mess up tsconfig.json baseUrl paths.
return r.isLikelyNodeModule();
}
pub const DebugMeta = struct {