Skip to content

Commit 8169b69

Browse files
sacgroverdgp1130
authored andcommitted
fix(@angular-devkit/build-angular): correct maximum budget size message
WARNING in budgets exceeded message showing wrong number Fixes #16871. (cherry picked from commit e5061ef)
1 parent 2fb1cb8 commit 8169b69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/angular_devkit/build_angular/src/angular-cli-files/utilities/bundle-calculator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ export function* checkThresholds(thresholds: IterableIterator<Threshold>, size:
357357
continue;
358358
}
359359

360-
const sizeDifference = formatSize(threshold.limit - size);
360+
const sizeDifference = formatSize(size - threshold.limit);
361361
yield {
362362
severity: threshold.severity,
363363
message: `Exceeded maximum budget for ${label}. Budget ${

0 commit comments

Comments
 (0)