Skip to content

Commit a175d28

Browse files
committed
test: remove bundle budget from JIT production E2E test
Applications built with JIT will be significantly larger due to both the need to bundle the Angular compiler and the extra metadata that must be retained for each Angular construct. The initial bundle budget in new applications is specified for an AOT application and may not pass if used with JIT.
1 parent 74f70af commit a175d28

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: tests/legacy-cli/e2e/tests/build/jit-prod.ts

+5
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,12 @@ export default async function () {
77
await updateJsonFile('angular.json', (configJson) => {
88
const appArchitect = configJson.projects['test-project'].architect;
99
appArchitect.build.configurations['production'].aot = false;
10+
11+
// JIT applications have significantly larger sizes
12+
appArchitect.build.configurations['production'].budgets = [];
13+
1014
if (!getGlobalVariable('argv')['esbuild']) {
15+
// The build optimizer option does not exist with the application build system
1116
appArchitect.build.configurations['production'].buildOptimizer = false;
1217
}
1318
});

0 commit comments

Comments
 (0)