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 fd22a88 commit aeb5264Copy full SHA for aeb5264
src/compiler/moduleNameResolver.ts
@@ -995,7 +995,7 @@ namespace ts {
995
export function getPackageNameFromAtTypesDirectory(mangledName: string): string {
996
const withoutAtTypePrefix = removePrefix(mangledName, "@types/");
997
if (withoutAtTypePrefix !== mangledName) {
998
- return withoutAtTypePrefix.indexOf("__") !== -1 ?
+ return withoutAtTypePrefix.indexOf(mangledScopedPackageSeparator) !== -1 ?
999
"@" + withoutAtTypePrefix.replace(mangledScopedPackageSeparator, ts.directorySeparator) :
1000
withoutAtTypePrefix;
1001
}
0 commit comments