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;
|
cache.oldNgtscProgram = angularProgram;
|
||||||
} else {
|
} else {
|
||||||
// When not in watch mode, the startup cost of the incremental analysis can be avoided by
|
builder = ts.createEmitAndSemanticDiagnosticsBuilderProgram(
|
||||||
// using an abstract builder that only wraps a TypeScript program.
|
typeScriptProgram,
|
||||||
builder = ts.createAbstractBuilder(typeScriptProgram, tsCompilerHost);
|
tsCompilerHost
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update semantic diagnostics cache
|
// Update semantic diagnostics cache
|
||||||
|
|||||||
@ -113,9 +113,10 @@ export async function compileSourceFiles(
|
|||||||
);
|
);
|
||||||
cache.oldNgtscProgram = angularProgram;
|
cache.oldNgtscProgram = angularProgram;
|
||||||
} else {
|
} else {
|
||||||
// When not in watch mode, the startup cost of the incremental analysis can be avoided by
|
builder = ts.createEmitAndSemanticDiagnosticsBuilderProgram(
|
||||||
// using an abstract builder that only wraps a TypeScript program.
|
typeScriptProgram,
|
||||||
builder = ts.createAbstractBuilder(typeScriptProgram, tsCompilerHost);
|
tsCompilerHost
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update semantic diagnostics cache
|
// Update semantic diagnostics cache
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user