File tree 1 file changed +9
-0
lines changed
packages/angular_devkit/build_angular/src/angular-cli-files/models/webpack-configs
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 5
5
* Use of this source code is governed by an MIT-style license that can be
6
6
* found in the LICENSE file at https://angular.io/license
7
7
*/
8
+ import { tags } from '@angular-devkit/core' ;
8
9
import * as CopyWebpackPlugin from 'copy-webpack-plugin' ;
9
10
import * as path from 'path' ;
10
11
import { HashedModuleIdsPlugin , debug } from 'webpack' ;
@@ -272,6 +273,14 @@ export function getCommonConfig(wco: WebpackConfigOptions) {
272
273
) ;
273
274
}
274
275
276
+ if ( wco . tsConfig . options . target === 4 ) {
277
+ wco . logger . warn ( tags . stripIndent `
278
+ WARNING: Zone.js does not support native async/await in ES2017.
279
+ These blocks are not intercepted by zone.js and will not triggering change detection.
280
+ See: https://github.com/angular/zone.js/pull/1140 for more information.
281
+ ` ) ;
282
+ }
283
+
275
284
return {
276
285
mode : scriptsOptimization || stylesOptimization
277
286
? 'production'
You can’t perform that action at this time.
0 commit comments