Skip to content

Commit

Permalink
fix(angular): display template error when cache is disabled in ng-pac…
Browse files Browse the repository at this point in the history
…kagr executors (#20277)
  • Loading branch information
leosvelperez committed Nov 16, 2023
1 parent 5bf1a92 commit f79fe20
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,10 @@ export async function compileSourceFiles(
);
cache.oldNgtscProgram = angularProgram;
} else {
// When not in watch mode, the startup cost of the incremental analysis can be avoided by
// using an abstract builder that only wraps a TypeScript program.
builder = ts.createAbstractBuilder(typeScriptProgram, tsCompilerHost);
builder = ts.createEmitAndSemanticDiagnosticsBuilderProgram(
typeScriptProgram,
tsCompilerHost
);
}

// Update semantic diagnostics cache
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,10 @@ export async function compileSourceFiles(
);
cache.oldNgtscProgram = angularProgram;
} else {
// When not in watch mode, the startup cost of the incremental analysis can be avoided by
// using an abstract builder that only wraps a TypeScript program.
builder = ts.createAbstractBuilder(typeScriptProgram, tsCompilerHost);
builder = ts.createEmitAndSemanticDiagnosticsBuilderProgram(
typeScriptProgram,
tsCompilerHost
);
}

// Update semantic diagnostics cache
Expand Down

0 comments on commit f79fe20

Please sign in to comment.