diff --git a/.bazelrc b/.bazelrc index e19e3fb688..dfda34a952 100644 --- a/.bazelrc +++ b/.bazelrc @@ -71,6 +71,13 @@ test --test_output=errors # any bazel target. This is a temporary flag until codebase is permanently switched to Ivy. build --define=compile=legacy +################################ +# Settings for rules_nodejs # +################################ +# Temporary define while angular depends on the legacy rollup_bundle rule. +# TODO: remove this setting after https://github.com/angular/angular/pull/33201 lands. +build --define=enable_legacy_rollup_rule=1 + ####################### # Remote HTTP Caching # ####################### diff --git a/integration/bazel/.bazelrc b/integration/bazel/.bazelrc index efb76512d7..f56328b9d6 100644 --- a/integration/bazel/.bazelrc +++ b/integration/bazel/.bazelrc @@ -14,6 +14,10 @@ build --local_resources=14336,8.0,1.0 # Use the Angular 6 compiler build --define=compile=legacy +# Temporary define while angular depends on the legacy rollup_bundle rule. +# TODO: remove this setting after https://github.com/angular/angular/pull/33201 lands. +build --define=enable_legacy_rollup_rule=1 + # Don't create symlinks build --symlink_prefix=/ diff --git a/packages/bazel/src/builders/files/__dot__bazelrc.template b/packages/bazel/src/builders/files/__dot__bazelrc.template index 215e72a24e..881f1e8ccf 100644 --- a/packages/bazel/src/builders/files/__dot__bazelrc.template +++ b/packages/bazel/src/builders/files/__dot__bazelrc.template @@ -30,6 +30,10 @@ test --test_output=errors # Use the Angular 6 compiler build --define=compile=legacy +# Temporary define while angular depends on the legacy rollup_bundle rule. +# TODO: remove this setting after https://github.com/angular/angular/pull/33201 lands. +build --define=enable_legacy_rollup_rule=1 + # Turn on managed directories feature in Bazel # This allows us to avoid installing a second copy of node_modules common --experimental_allow_incremental_repository_updates