Skip to content

Commit

Permalink
perf: improve solution builder performance by skipLibCheck (#494)
Browse files Browse the repository at this point in the history
  • Loading branch information
piotr-oles committed Aug 3, 2020
1 parent 622c410 commit 83bc29c
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,20 @@ function createControlledWatchSolutionBuilderHost<TProgram extends ts.BuilderPro
deleteFile(fileName: string): void {
system.deleteFile(fileName);
},
getParsedCommandLine(fileName: string): ts.ParsedCommandLine | undefined {
return ts.getParsedCommandLineOfConfigFile(
fileName,
{ skipLibCheck: true },
{
...system,
onUnRecoverableConfigFileDiagnostic: (diagnostic) => {
if (reportDiagnostic) {
reportDiagnostic(diagnostic);
}
},
}
);
},
};

hostExtensions.forEach((hostExtension) => {
Expand Down

0 comments on commit 83bc29c

Please sign in to comment.