-
Notifications
You must be signed in to change notification settings - Fork 0
/
rollup.config.js
32 lines (30 loc) · 1.05 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
import localResolve from 'rollup-plugin-local-resolve';
// Add here external dependencies that actually you use.
const globals = {
'@angular/core': 'ng.core',
'@angular/common': 'ng.common',
'rxjs/Rx': 'Rx',
'rxjs/Observable': 'Rx',
'rxjs/Observer': 'Rx',
'rxjs/ReplaySubject': 'Rx',
'rxjs/BehaviorSubject': 'Rx',
'rxjs/Subscription': 'Rx',
'rxjs/add/operator/map': 'Rx',
'rxjs/add/operator/publishReplay': 'Rx',
'rxjs/add/operator/catch': 'Rx.Observable.prototype',
'rxjs/add/operator/publishReplay': 'Rx.Observable.prototype',
'rxjs/add/observable/forkJoin': 'Rx.Observable.prototype',
'rxjs/add/operator/mergeMap': 'Rx.Observable.prototype',
'rxjs/add/operator/first': 'Rx.Observable.prototype'
};
export default {
entry: './dist/modules/ng-iotile-cloud.es5.js',
dest: './dist/bundles/ng-iotile-cloud.umd.js',
format: 'umd',
exports: 'named',
moduleName: 'ng.iotileCloud',
plugins: [localResolve()],
external: Object.keys(globals),
globals: globals,
onwarn: () => { return }
}