File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
packages/angular_devkit/build_angular/src/angular-cli-files/models/webpack-configs Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 55 * Use of this source code is governed by an MIT-style license that can be
66 * found in the LICENSE file at https://angular.io/license
77 */
8+ import { tags } from '@angular-devkit/core' ;
89import * as CopyWebpackPlugin from 'copy-webpack-plugin' ;
910import * as path from 'path' ;
1011import { HashedModuleIdsPlugin , debug } from 'webpack' ;
@@ -272,6 +273,14 @@ export function getCommonConfig(wco: WebpackConfigOptions) {
272273 ) ;
273274 }
274275
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+
275284 return {
276285 mode : scriptsOptimization || stylesOptimization
277286 ? 'production'
You can’t perform that action at this time.
0 commit comments