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 0c1b81c commit a098b54Copy full SHA for a098b54
src/compiler/path.ts
@@ -556,8 +556,8 @@ namespace ts {
556
if (!relativePathSegmentRegExp.test(path)) {
557
return path;
558
}
559
- // Some paths only require cleanup of `/./`
560
- const simplified = path.replace(/\/\.\//g, "/");
+ // Some paths only require cleanup of `/./` or leading `./`
+ const simplified = path.replace(/\/\.\//g, "/").replace(/^\.\//, "");
561
if (simplified !== path) {
562
path = simplified;
563
0 commit comments