Skip to content

Commit

Permalink
fix(@angular/cli): use JIT by default with ng5
Browse files Browse the repository at this point in the history
  • Loading branch information
filipesilva authored and Zhicheng Wang committed Nov 2, 2017
1 parent cbc5d74 commit c83f97d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/@angular/cli/models/webpack-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export class NgCliWebpackConfig<T extends BuildOptions = BuildOptions> {
sourcemaps: true,
extractCss: false,
namedChunks: true,
aot: AngularCompilerPlugin.isSupported(),
aot: false,
buildOptimizer: false
},
production: {
Expand Down
4 changes: 2 additions & 2 deletions tests/e2e/tests/i18n/build-locale.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ export default function () {
// These tests should be moved to the default when we use ng5 in new projects.
return Promise.resolve()
// tests for register_locale_data transformer
.then(() => ng('build', '--locale=fr'))
.then(() => ng('build', '--aot', '--locale=fr'))
.then(() => expectFileToMatch('dist/main.bundle.js', /registerLocaleData/))
.then(() => expectFileToMatch('dist/main.bundle.js', /angular_common_locales_fr/))
.then(() => rimraf('dist'))
.then(() => expectToFail(() => ng('build', '--locale=no-locale')))
.then(() => expectToFail(() => ng('build', '--aot', '--locale=no-locale')))
}

0 comments on commit c83f97d

Please sign in to comment.