Skip to content

Commit 077ebf6

Browse files
devversionmmalerba
authored andcommitted
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.
1 parent 5f9a64b commit 077ebf6

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

tools/package-tools/rollup-helpers.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const ROLLUP_GLOBALS = {
2424
'@angular/material': 'ng.material',
2525
'@angular/cdk': 'ng.cdk',
2626

27-
// Rxjs dependencies
27+
// RxJS dependencies
2828
'rxjs/BehaviorSubject': 'Rx',
2929
'rxjs/Observable': 'Rx',
3030
'rxjs/Subject': 'Rx',
@@ -49,6 +49,14 @@ const ROLLUP_GLOBALS = {
4949
'rxjs/operator/switchMap': 'Rx.Observable.prototype',
5050
'rxjs/operator/takeUntil': 'Rx.Observable.prototype',
5151
'rxjs/operator/toPromise': 'Rx.Observable.prototype',
52+
53+
// RxJS imports for the examples package
54+
'rxjs/add/observable/merge': 'Rx.Observable',
55+
'rxjs/add/observable/fromEvent': 'Rx.Observable',
56+
'rxjs/add/operator/startWith': 'Rx.Observable.prototype',
57+
'rxjs/add/operator/map': 'Rx.Observable.prototype',
58+
'rxjs/add/operator/debounceTime': 'Rx.Observable.prototype',
59+
'rxjs/add/operator/distinctUntilChanged': 'Rx.Observable.prototype',
5260
};
5361

5462
export type BundleConfig = {

0 commit comments

Comments
 (0)