fix(bazel): Allow ng_module to depend on targets w no deps (#24446)
PR Close #24446
This commit is contained in:
parent
3ed2d75336
commit
282d3510cf
|
@ -263,7 +263,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])
|
||||
|
|
Loading…
Reference in New Issue