Skip to content

Commit 97df5c9

Browse files
committed
Swap order
1 parent b81f03b commit 97df5c9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/compiler/program.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2678,14 +2678,14 @@ export function createProgram(_rootNamesOrOptions: readonly string[] | CreatePro
26782678
return false;
26792679
}
26802680

2681-
if (options.noLib) {
2682-
return false;
2683-
}
2684-
26852681
if (libFiles.has(file.path)) {
26862682
return true;
26872683
}
26882684

2685+
if (options.noLib) {
2686+
return false;
2687+
}
2688+
26892689
// If '--lib' is not specified, include default library file according to '--target'
26902690
// otherwise, using options specified in '--lib' instead of '--target' default library file
26912691
const equalityComparer = host.useCaseSensitiveFileNames() ? equateStringsCaseSensitive : equateStringsCaseInsensitive;

0 commit comments

Comments
 (0)