Skip to content

Commit f9d2515

Browse files
filipesilvahansl
authored andcommittedNov 1, 2017
fix(@angular/cli): use JIT by default with ng5
Fix #8259
1 parent dfc18f5 commit f9d2515

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎packages/@angular/cli/models/webpack-config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export class NgCliWebpackConfig<T extends BuildOptions = BuildOptions> {
9595
sourcemaps: true,
9696
extractCss: false,
9797
namedChunks: true,
98-
aot: AngularCompilerPlugin.isSupported(),
98+
aot: false,
9999
buildOptimizer: false
100100
},
101101
production: {

‎tests/e2e/tests/i18n/build-locale.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ export default function () {
1414
// These tests should be moved to the default when we use ng5 in new projects.
1515
return Promise.resolve()
1616
// tests for register_locale_data transformer
17-
.then(() => ng('build', '--locale=fr'))
17+
.then(() => ng('build', '--aot', '--locale=fr'))
1818
.then(() => expectFileToMatch('dist/main.bundle.js', /registerLocaleData/))
1919
.then(() => expectFileToMatch('dist/main.bundle.js', /angular_common_locales_fr/))
2020
.then(() => rimraf('dist'))
21-
.then(() => expectToFail(() => ng('build', '--locale=no-locale')))
21+
.then(() => expectToFail(() => ng('build', '--aot', '--locale=no-locale')))
2222
}

0 commit comments

Comments
 (0)