Skip to content

Commit 5d485a5

Browse files
chore(rollup): update rollup config
1 parent 8bc05b5 commit 5d485a5

File tree

1 file changed

+41
-43
lines changed

1 file changed

+41
-43
lines changed

rollup.config.js

Lines changed: 41 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -58,54 +58,52 @@ const CONFIG = {
5858
file: '_bundles/ui-router-ng2' + extension,
5959
sourcemap: true,
6060
format: 'umd',
61+
exports: 'named',
62+
banner: banner,
63+
globals: {
64+
'tslib': 'tslib',
65+
'rxjs/ReplaySubject': 'Rx',
66+
67+
// Copied these from @angular/router rollup config
68+
'rxjs/BehaviorSubject': 'Rx',
69+
'rxjs/Observable': 'Rx',
70+
'rxjs/Subject': 'Rx',
71+
'rxjs/Subscription': 'Rx',
72+
'rxjs/util/EmptyError': 'Rx',
73+
74+
'rxjs/observable/combineLatest': 'Rx.Observable',
75+
'rxjs/observable/forkJoin': 'Rx.Observable',
76+
'rxjs/observable/from': 'Rx.Observable',
77+
'rxjs/observable/fromPromise': 'Rx.Observable',
78+
'rxjs/observable/of': 'Rx.Observable',
79+
80+
'rxjs/operator/catch': 'Rx.Observable.prototype',
81+
'rxjs/operator/concat': 'Rx.Observable.prototype',
82+
'rxjs/operator/concatAll': 'Rx.Observable.prototype',
83+
'rxjs/operator/concatMap': 'Rx.Observable.prototype',
84+
'rxjs/operator/every': 'Rx.Observable.prototype',
85+
'rxjs/operator/filter': 'Rx.Observable.prototype',
86+
'rxjs/operator/first': 'Rx.Observable.prototype',
87+
'rxjs/operator/last': 'Rx.Observable.prototype',
88+
'rxjs/operator/map': 'Rx.Observable.prototype',
89+
'rxjs/operator/mergeAll': 'Rx.Observable.prototype',
90+
'rxjs/operator/mergeMap': 'Rx.Observable.prototype',
91+
'rxjs/operator/reduce': 'Rx.Observable.prototype',
92+
'rxjs/operator/switchMap': 'Rx.Observable.prototype',
93+
'rxjs/operator/toPromise': 'Rx.Observable.prototype',
94+
95+
'@uirouter/core': '@uirouter/core',
96+
'@uirouter/rx': '@uirouter/rx',
97+
'ui-router-rx': 'ui-router-rx',
98+
'@angular/core': 'ng.core',
99+
'@angular/common': 'ng.common',
100+
'@angular/router': 'ng.router',
101+
},
61102
},
62103

63-
exports: 'named',
64104
plugins: plugins,
65-
banner: banner,
66-
67105
onwarn: onwarn,
68106
external: isExternal,
69-
70-
globals: {
71-
'tslib': 'tslib',
72-
'rxjs/ReplaySubject': 'Rx',
73-
74-
// Copied these from @angular/router rollup config
75-
'rxjs/BehaviorSubject': 'Rx',
76-
'rxjs/Observable': 'Rx',
77-
'rxjs/Subject': 'Rx',
78-
'rxjs/Subscription': 'Rx',
79-
'rxjs/util/EmptyError': 'Rx',
80-
81-
'rxjs/observable/combineLatest': 'Rx.Observable',
82-
'rxjs/observable/forkJoin': 'Rx.Observable',
83-
'rxjs/observable/from': 'Rx.Observable',
84-
'rxjs/observable/fromPromise': 'Rx.Observable',
85-
'rxjs/observable/of': 'Rx.Observable',
86-
87-
'rxjs/operator/catch': 'Rx.Observable.prototype',
88-
'rxjs/operator/concat': 'Rx.Observable.prototype',
89-
'rxjs/operator/concatAll': 'Rx.Observable.prototype',
90-
'rxjs/operator/concatMap': 'Rx.Observable.prototype',
91-
'rxjs/operator/every': 'Rx.Observable.prototype',
92-
'rxjs/operator/filter': 'Rx.Observable.prototype',
93-
'rxjs/operator/first': 'Rx.Observable.prototype',
94-
'rxjs/operator/last': 'Rx.Observable.prototype',
95-
'rxjs/operator/map': 'Rx.Observable.prototype',
96-
'rxjs/operator/mergeAll': 'Rx.Observable.prototype',
97-
'rxjs/operator/mergeMap': 'Rx.Observable.prototype',
98-
'rxjs/operator/reduce': 'Rx.Observable.prototype',
99-
'rxjs/operator/switchMap': 'Rx.Observable.prototype',
100-
'rxjs/operator/toPromise': 'Rx.Observable.prototype',
101-
102-
'@uirouter/core': '@uirouter/core',
103-
'@uirouter/rx': '@uirouter/rx',
104-
'ui-router-rx': 'ui-router-rx',
105-
'@angular/core': 'ng.core',
106-
'@angular/common': 'ng.common',
107-
'@angular/router': 'ng.router',
108-
}
109107
};
110108

111109
export default CONFIG;

0 commit comments

Comments
 (0)