We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 430e759 commit 3a913d2Copy full SHA for 3a913d2
packages/ngtools/webpack/src/angular_compiler_plugin.ts
@@ -596,7 +596,8 @@ export class AngularCompilerPlugin {
596
// Only do the unused TS files checks when under Ivy
597
// since previously we did include unused files in the compilation
598
// See: https://github.com/angular/angular-cli/pull/15030
599
- if (!this._compilerOptions.enableIvy) {
+ // Don't do checks for compilations with errors, since that can result in a partial compilation.
600
+ if (!this._compilerOptions.enableIvy || compilation.errors.length > 0) {
601
return;
602
}
603
0 commit comments