mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
build: fix rollup globals for examples package (#5611)
Recently the rollup globals have been changed because the operators are no longer applied to the prototype (using `/add/` imports). This now causes some warnigns and invalid id's in the bundles of the Material examples because those still use the `/add/` imports in some examples.
This commit is contained in:
committed by
mmalerba
parent
5f9a64b526
commit
077ebf63c5
@@ -24,7 +24,7 @@ const ROLLUP_GLOBALS = {
|
||||
'@angular/material': 'ng.material',
|
||||
'@angular/cdk': 'ng.cdk',
|
||||
|
||||
// Rxjs dependencies
|
||||
// RxJS dependencies
|
||||
'rxjs/BehaviorSubject': 'Rx',
|
||||
'rxjs/Observable': 'Rx',
|
||||
'rxjs/Subject': 'Rx',
|
||||
@@ -49,6 +49,14 @@ const ROLLUP_GLOBALS = {
|
||||
'rxjs/operator/switchMap': 'Rx.Observable.prototype',
|
||||
'rxjs/operator/takeUntil': 'Rx.Observable.prototype',
|
||||
'rxjs/operator/toPromise': 'Rx.Observable.prototype',
|
||||
|
||||
// RxJS imports for the examples package
|
||||
'rxjs/add/observable/merge': 'Rx.Observable',
|
||||
'rxjs/add/observable/fromEvent': 'Rx.Observable',
|
||||
'rxjs/add/operator/startWith': 'Rx.Observable.prototype',
|
||||
'rxjs/add/operator/map': 'Rx.Observable.prototype',
|
||||
'rxjs/add/operator/debounceTime': 'Rx.Observable.prototype',
|
||||
'rxjs/add/operator/distinctUntilChanged': 'Rx.Observable.prototype',
|
||||
};
|
||||
|
||||
export type BundleConfig = {
|
||||
|
||||
Reference in New Issue
Block a user