From b73d6781da50aec6eeb870aad14af16247f91762 Mon Sep 17 00:00:00 2001 From: Filipe Silva Date: Thu, 10 Jan 2019 17:37:25 +0000 Subject: [PATCH] build: support external angular in ng_rollup_bundle (#28049) PR Close #28049 --- packages/bazel/src/ng_rollup_bundle.bzl | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/packages/bazel/src/ng_rollup_bundle.bzl b/packages/bazel/src/ng_rollup_bundle.bzl index cd0bf8db22..43e77ed3c3 100644 --- a/packages/bazel/src/ng_rollup_bundle.bzl +++ b/packages/bazel/src/ng_rollup_bundle.bzl @@ -27,7 +27,19 @@ load( load("@build_bazel_rules_nodejs//internal:collect_es6_sources.bzl", collect_es2015_sources = "collect_es6_sources") load(":esm5.bzl", "esm5_outputs_aspect", "esm5_root_dir", "flatten_esm5") -PACKAGES = ["packages/core/src", "packages/common/src", "packages/compiler/src", "external/rxjs"] +PACKAGES = [ + # Generated paths when using ng_rollup_bundle outside this monorepo. + "external/angular/packages/core/src", + "external/angular/packages/common/src", + "external/angular/packages/compiler/src", + "external/angular/packages/platform-browser/src", + "external/rxjs", + # Generated paths when using ng_rollup_bundle inside this monorepo. + "packages/core/src", + "packages/common/src", + "packages/compiler/src", + "packages/platform-browser/src", +] PLUGIN_CONFIG = "{sideEffectFreeModules: [\n%s]}" % ",\n".join( [" '.esm5/{0}'".format(p) for p in PACKAGES], )