diff --git a/packages/angular_devkit/build_angular/src/webpack/plugins/any-component-style-budget-checker.ts b/packages/angular_devkit/build_angular/src/webpack/plugins/any-component-style-budget-checker.ts index f3f12be60583..ee5fb36691ff 100644 --- a/packages/angular_devkit/build_angular/src/webpack/plugins/any-component-style-budget-checker.ts +++ b/packages/angular_devkit/build_angular/src/webpack/plugins/any-component-style-budget-checker.ts @@ -37,6 +37,11 @@ export class AnyComponentStyleBudgetChecker { stage: Compilation.PROCESS_ASSETS_STAGE_ANALYSE, }, () => { + // No budgets. + if (this.budgets.length === 0) { + return; + } + // In AOT compilations component styles get processed in child compilations. if (!compilation.compiler.parentCompilation) { return;