From b33391972287a87074dfd537a6083df446cbe4b2 Mon Sep 17 00:00:00 2001 From: Chuck Jazdzewski Date: Thu, 8 Feb 2018 14:50:43 -0800 Subject: [PATCH] build(bazel): allow ng_modules to elide .ngsummary.closure.js files (#22107) PR Close #22107 --- packages/bazel/src/ng_module.bzl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/bazel/src/ng_module.bzl b/packages/bazel/src/ng_module.bzl index c7eb999fd3..fdae5521f1 100644 --- a/packages/bazel/src/ng_module.bzl +++ b/packages/bazel/src/ng_module.bzl @@ -57,7 +57,8 @@ def _expected_outs(ctx): else: continue - closure_js = [f.replace(".js", ".closure.js") for f in devmode_js] + filter_summaries = ctx.attr.filter_summaries + closure_js = [f.replace(".js", ".closure.js") for f in devmode_js if not filter_summaries or not f.endswith(".ngsummary.js")] declarations = [f.replace(".js", ".d.ts") for f in devmode_js] devmode_js_files += [ctx.new_file(ctx.bin_dir, basename + ext) for ext in devmode_js] @@ -282,6 +283,8 @@ NG_MODULE_ATTRIBUTES = { allow_files = [".ts", ".html"], mandatory = False), + "filter_summaries": attr.bool(default = False), + "type_check": attr.bool(default = True), "no_i18n": attr.bool(default = False),