fix(angular): display template error when cache is disabled in ng-packagr executors (#20277)
This commit is contained in:
parent
5bf1a928e7
commit
f79fe20520
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user