Skip to content

Commit 09bc2e6

Browse files
authored
Merge pull request #10387 from Microsoft/comment_process_type_reference_directives
Explain why we lower-case type reference directives
2 parents c218d37 + c42f1cb commit 09bc2e6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/compiler/program.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2010,6 +2010,7 @@ namespace ts {
20102010
}
20112011

20122012
function processTypeReferenceDirectives(file: SourceFile) {
2013+
// We lower-case all type references because npm automatically lowercases all packages. See GH#9824.
20132014
const typeDirectives = map(file.typeReferenceDirectives, ref => ref.fileName.toLocaleLowerCase());
20142015
const resolutions = resolveTypeReferenceDirectiveNamesWorker(typeDirectives, file.fileName);
20152016

0 commit comments

Comments
 (0)