From 6911a250ef82ef0cf41c42d34b75885a25c0301b Mon Sep 17 00:00:00 2001 From: Victor Berchet Date: Mon, 4 Dec 2017 11:12:05 -0800 Subject: [PATCH] build: set `preserveWhitespaces` to false by default on Bazel (#20783) `preserveWhitespaces: false` will be the default in Angular 6+ You can opt-out at component or element level. Docs: https://angular.io/api/core/Component#preserveWhitespaces PR Close #20783 --- packages/bazel/src/ng_module.bzl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/bazel/src/ng_module.bzl b/packages/bazel/src/ng_module.bzl index 802d746244..c90f0eeb7e 100644 --- a/packages/bazel/src/ng_module.bzl +++ b/packages/bazel/src/ng_module.bzl @@ -73,7 +73,8 @@ def _ngc_tsconfig(ctx, files, srcs, **kwargs): "allowEmptyCodegenFiles": True, "enableSummariesForJit": True, # FIXME: wrong place to de-dupe - "expectedOut": depset([o.path for o in expected_outs]).to_list() + "expectedOut": depset([o.path for o in expected_outs]).to_list(), + "preserveWhitespaces": False, } })