Skip to content

Commit 8866f1d

Browse files
alan-agius4vikerman
authored andcommitted
refactor(@schematics/angular): remove redundant aot option for production
1 parent f4691a5 commit 8866f1d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/schematics/angular/application/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,6 @@ function addAppToWorkspaceFile(options: ApplicationOptions, appDir: string): Rul
215215
sourceMap: false,
216216
extractCss: true,
217217
namedChunks: false,
218-
aot: true,
219218
extractLicenses: true,
220219
vendorChunk: false,
221220
buildOptimizer: true,

tests/legacy-cli/e2e/setup/500-create-project.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ export default async function() {
2929

3030
// In VE non prod builds are non AOT by default
3131
await updateJsonFile('angular.json', config => {
32-
config.projects['test-project'].architect.build.options.aot = false;
32+
const build = config.projects['test-project'].architect.build;
33+
build.options.aot = false;
34+
build.configurations.production.aot = true;
3335
});
3436
}
3537
}

0 commit comments

Comments
 (0)