From be10bf538b01f74bc3ea5774fb5e92046cb9d0a2 Mon Sep 17 00:00:00 2001 From: Alex Eagle Date: Thu, 29 Mar 2018 22:03:19 -0700 Subject: [PATCH] fix(bazel): don't try to do flatmoduleindex under Blaze (#23083) PR Close #23083 --- packages/bazel/src/ng_module.bzl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/bazel/src/ng_module.bzl b/packages/bazel/src/ng_module.bzl index 82c609dddf..65596e2849 100644 --- a/packages/bazel/src/ng_module.bzl +++ b/packages/bazel/src/ng_module.bzl @@ -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