diff --git a/packages/bazel/src/ng_module.bzl b/packages/bazel/src/ng_module.bzl index c758e047e2..3e1329f025 100644 --- a/packages/bazel/src/ng_module.bzl +++ b/packages/bazel/src/ng_module.bzl @@ -42,6 +42,11 @@ def is_ivy_enabled(ctx): attr = "ng_module", ) + # This attribute is only defined in google's private ng_module rule and not + # available externally. For external users, this is effectively a no-op. + if hasattr(ctx.attr, "ivy") and ctx.attr.ivy == True: + return True + # TODO(josephperrott): Remove configuration via compile=aot define flag. if ctx.var.get("compile", None) == "aot": # buildifier: disable=print