JS: Normalize a few more extensions

This commit is contained in:
Asger F
2025-06-10 17:32:42 +02:00
parent 18f9133715
commit 72cc439125

View File

@@ -392,7 +392,7 @@ module NameResolution {
private string normalizeModuleName(string name) {
result =
name.regexpReplaceAll("^node:", "")
.regexpReplaceAll("\\.[jt]sx?$", "")
.regexpReplaceAll("\\.[cm]?[jt]sx?$", "")
.regexpReplaceAll("/(index)?$", "")
}