From ea3669e334ffd1d413bab45b76dd218a791c813b Mon Sep 17 00:00:00 2001 From: Alex Eagle Date: Tue, 12 Jun 2018 08:55:16 -0700 Subject: [PATCH] fix(bazel): Allow ng_module to depend on targets w no deps (#24446) PR Close #24446 --- 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 afeeccc845..e1ce62f7fb 100644 --- a/packages/bazel/src/ng_module.bzl +++ b/packages/bazel/src/ng_module.bzl @@ -176,7 +176,7 @@ def _collect_summaries_aspect_impl(target, ctx): 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: + if not srcs and hasattr(ctx.rule.attr, "deps"): for dep in ctx.rule.attr.deps: if (hasattr(dep, "angular")): results = depset(dep.angular.summaries, transitive = [results])