From 34e355a3b0b5e79012c0612b8ee3de57886a3d26 Mon Sep 17 00:00:00 2001 From: Jeremy Elbourn Date: Tue, 13 Mar 2018 11:21:50 -0700 Subject: [PATCH] build(bazel): ng_package rxjs/operators rollup config (#22744) PR Close #22744 --- packages/bazel/src/ng_package/ng_package.bzl | 114 ++++++++++++++++++- 1 file changed, 111 insertions(+), 3 deletions(-) diff --git a/packages/bazel/src/ng_package/ng_package.bzl b/packages/bazel/src/ng_package/ng_package.bzl index 3e57a5d3b2..47df91f379 100644 --- a/packages/bazel/src/ng_package/ng_package.bzl +++ b/packages/bazel/src/ng_package/ng_package.bzl @@ -29,18 +29,23 @@ WELL_KNOWN_GLOBALS.update({"rxjs/%s" % s: "Rx" for s in [ "ConnectableObservable", "Observable", "Observer", - "Subject", - "Subscription", "ReplaySubject", + "Scheduler", + "Subject", + "Subscriber", + "Subscription", "util/EmptyError", ]}) WELL_KNOWN_GLOBALS.update({"rxjs/observable/%s" % s: "Rx.Observable" for s in [ + "combineLatest", "concat", "defer", + "empty", + "forkJoin", "from", "fromEvent", + "fromEventPattern", "fromPromise", - "forkJoin", "merge", "never", "of", @@ -66,6 +71,109 @@ WELL_KNOWN_GLOBALS.update({"rxjs/operator/%s" % s: "Rx.Observable.prototype" for "take", "toPromise", ]}) +WELL_KNOWN_GLOBALS.update({"rxjs/operators/%s" % s: "Rx.operators" for s in [ + "audit", + "auditTime", + "bufferCount", + "buffer", + "bufferTime", + "bufferToggle", + "bufferWhen", + "catchError", + "combineAll", + "combineLatest", + "concatAll", + "concat", + "concatMap", + "concatMapTo", + "count", + "debounce", + "debounceTime", + "defaultIfEmpty", + "delay", + "delayWhen", + "dematerialize", + "distinct", + "distinctUntilChanged", + "distinctUntilKeyChanged", + "elementAt", + "every", + "exhaust", + "exhaustMap", + "expand", + "filter", + "finalize", + "findIndex", + "find", + "first", + "groupBy", + "ignoreElements", + "isEmpty", + "last", + "map", + "mapTo", + "materialize", + "max", + "mergeAll", + "merge", + "mergeMap", + "mergeMapTo", + "mergeScan", + "min", + "multicast", + "observeOn", + "onErrorResumeNext", + "pairwise", + "partition", + "pluck", + "publishBehavior", + "publish", + "publishLast", + "publishReplay", + "race", + "reduce", + "refCount", + "repeat", + "repeatWhen", + "retry", + "retryWhen", + "sample", + "sampleTime", + "scan", + "sequenceEqual", + "share", + "shareReplay", + "single", + "skip", + "skipLast", + "skipUntil", + "skipWhile", + "startWith", + "subscribeOn", + "switchAll", + "switchMap", + "switchMapTo", + "take", + "takeLast", + "takeUntil", + "takeWhile", + "tap", + "throttle", + "throttleTime", + "timeInterval", + "timeout", + "timeoutWith", + "timestamp", + "toArray", + "windowCount", + "window", + "windowTime", + "windowToggle", + "windowWhen", + "withLatestFrom", + "zipAll", + "zip", +]}) def _rollup(ctx, rollup_config, entry_point, inputs, js_output, format = "es"):