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 b81f03b commit 97df5c9Copy full SHA for 97df5c9
src/compiler/program.ts
@@ -2678,14 +2678,14 @@ export function createProgram(_rootNamesOrOptions: readonly string[] | CreatePro
2678
return false;
2679
}
2680
2681
- if (options.noLib) {
2682
- return false;
2683
- }
2684
-
2685
if (libFiles.has(file.path)) {
2686
return true;
2687
2688
+ if (options.noLib) {
+ return false;
+ }
+
2689
// If '--lib' is not specified, include default library file according to '--target'
2690
// otherwise, using options specified in '--lib' instead of '--target' default library file
2691
const equalityComparer = host.useCaseSensitiveFileNames() ? equateStringsCaseSensitive : equateStringsCaseInsensitive;
0 commit comments