-
Notifications
You must be signed in to change notification settings - Fork 0
/
rollup.config.js
36 lines (35 loc) · 1.04 KB
/
rollup.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import resolve from 'rollup-plugin-node-resolve';
export default {
input: 'dist/src/index.js',
output: {
file: 'dist/bundles/bundle.umd.js',
format: 'umd',
globals: {
'@angular/core': 'ng.core',
'rxjs/Observable': 'Rx',
'rxjs/Subject': 'Rx',
'rxjs/operators': 'Rx.Observable.prototype',
'rxjs/operators/switchMap': 'Rx.Observable.prototype',
'rxjs/operators/filter': 'Rx.Observable.prototype',
'rxjs/operators/take': 'Rx.Observable.prototype',
'rxjs/operators/takeUntil': 'Rx.Observable.prototype',
'rxjs/operators/startWith': 'Rx.Observable.prototype',
'rxjs/observable/defer': 'Rx.Observable',
'rxjs/observable/merge': 'Rx.Observable'
}
},
name: 'MyModule',
options: {
format: 'umd'
},
plugins: [
resolve(
{
modulesOnly: true
}
)
],
external(id) {
return id.indexOf('node_modules') >= 0;
}
}