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 44f665b commit 4add8b8Copy full SHA for 4add8b8
src/compiler/path.ts
@@ -735,7 +735,10 @@ function simpleNormalizePath(path: string): string | undefined {
735
return path;
736
}
737
// Some paths only require cleanup of `/./` or leading `./`
738
- const simplified = path.replace(/\/\.\//g, "/").replace(/^\.\//, "");
+ let simplified = path.replace(/\/\.\//g, "/");
739
+ if (simplified.startsWith("./")) {
740
+ simplified = simplified.slice(2);
741
+ }
742
if (simplified !== path) {
743
path = simplified;
744
if (!relativePathSegmentRegExp.test(path)) {
0 commit comments