Skip to content

Commit 83bc29c

Browse files
authored
perf: improve solution builder performance by skipLibCheck (#494)
1 parent 622c410 commit 83bc29c

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/typescript-reporter/reporter/ControlledWatchSolutionBuilderHost.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,20 @@ function createControlledWatchSolutionBuilderHost<TProgram extends ts.BuilderPro
5656
deleteFile(fileName: string): void {
5757
system.deleteFile(fileName);
5858
},
59+
getParsedCommandLine(fileName: string): ts.ParsedCommandLine | undefined {
60+
return ts.getParsedCommandLineOfConfigFile(
61+
fileName,
62+
{ skipLibCheck: true },
63+
{
64+
...system,
65+
onUnRecoverableConfigFileDiagnostic: (diagnostic) => {
66+
if (reportDiagnostic) {
67+
reportDiagnostic(diagnostic);
68+
}
69+
},
70+
}
71+
);
72+
},
5973
};
6074

6175
hostExtensions.forEach((hostExtension) => {

0 commit comments

Comments
 (0)