Skip to content

Commit

Permalink
fix(@angular-devkit/build-angular): added warning for ES2017
Browse files Browse the repository at this point in the history
  • Loading branch information
hrocha16 authored and alexeagle committed Feb 13, 2019
1 parent 62264ce commit 26f3475
Showing 1 changed file with 9 additions and 0 deletions.
Expand Up @@ -5,6 +5,7 @@
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { tags } from '@angular-devkit/core';
import * as CopyWebpackPlugin from 'copy-webpack-plugin';
import * as path from 'path';
import { HashedModuleIdsPlugin, debug } from 'webpack';
Expand Down Expand Up @@ -272,6 +273,14 @@ export function getCommonConfig(wco: WebpackConfigOptions) {
);
}

if (wco.tsConfig.options.target === 4) {
wco.logger.warn(tags.stripIndent`
WARNING: Zone.js does not support native async/await in ES2017.
These blocks are not intercepted by zone.js and will not triggering change detection.
See: https://github.com/angular/zone.js/pull/1140 for more information.
`);
}

return {
mode: scriptsOptimization || stylesOptimization
? 'production'
Expand Down

0 comments on commit 26f3475

Please sign in to comment.