Skip to content

Commit 5e097cb

Browse files
committed
fix(@angular-devkit/build-angular): use stripIndent
1 parent 9403ed8 commit 5e097cb

File tree

1 file changed

+2
-1
lines changed
  • packages/angular_devkit/build_angular/src/angular-cli-files/models/webpack-configs

1 file changed

+2
-1
lines changed

packages/angular_devkit/build_angular/src/angular-cli-files/models/webpack-configs/common.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
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';
89
import * as CopyWebpackPlugin from 'copy-webpack-plugin';
910
import * as path from 'path';
1011
import { HashedModuleIdsPlugin, debug } from 'webpack';
@@ -273,7 +274,7 @@ export function getCommonConfig(wco: WebpackConfigOptions) {
273274
}
274275

275276
if (wco.tsConfig.options.target === 4) {
276-
wco.logger.warn(`\nWARNING: Zone.js does not support native async/await
277+
wco.logger.warn(tags.stripIndent`WARNING: Zone.js does not support native async/await
277278
(https://github.com/angular/zone.js/pull/1140) in ES2017. Code inside async/await blocks
278279
is invisible to zone.js thus not triggering change detection.`);
279280
}

0 commit comments

Comments
 (0)