Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(bazel): don't try to do flatmoduleindex under Blaze #23083

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/bazel/src/ng_module.bzl
Expand Up @@ -50,7 +50,8 @@ def _should_produce_flat_module_outs(ctx):
Returns:
true iff we should run the bundle_index_host to produce flat module metadata and bundle index
"""
return bool(ctx.attr.module_name)
is_bazel = not hasattr(native, "genmpm")
return is_bazel and ctx.attr.module_name

# Calculate the expected output of the template compiler for every source in
# in the library. Most of these will be produced as empty files but it is
Expand Down