From a1293b26ef9d4c75b81280ac79d76d1cb1975be0 Mon Sep 17 00:00:00 2001 From: Tobias Bosch Date: Wed, 30 Aug 2017 16:10:58 -0700 Subject: [PATCH] build: correctly collect summary files with bazel (#18912) PR Close #18912 --- packages/bazel/src/ng_module.bzl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/bazel/src/ng_module.bzl b/packages/bazel/src/ng_module.bzl index 13629865b3..e21ba8b847 100644 --- a/packages/bazel/src/ng_module.bzl +++ b/packages/bazel/src/ng_module.bzl @@ -75,7 +75,7 @@ def _collect_summaries_aspect_impl(target, ctx): results = target.angular.summaries if hasattr(target, "angular") else depset() # If we are visiting empty-srcs ts_library, this is a re-export - srcs = target.srcs if hasattr(target, "srcs") else [] + srcs = ctx.rule.attr.srcs if hasattr(ctx.rule.attr, "srcs") else [] # "re-export" rules should expose all the files of their deps if not srcs: