1 | import resolve from 'rollup-plugin-node-resolve';
|
2 | import commonjs from 'rollup-plugin-commonjs';
|
3 |
|
4 | export default {
|
5 | entry: 'aot/index.js',
|
6 | dest: 'aot/bundles/arranbartishAngularCliWidgets.umd.js',
|
7 | sourceMap: false,
|
8 | format: 'umd',
|
9 | plugins: [
|
10 | resolve({ jsnext: true, main: true }),
|
11 | commonjs()
|
12 | ],
|
13 | moduleName: 'ng.arranbartishAngularCliWidgets',
|
14 | globals: {
|
15 | '@angular/core': 'ng.core',
|
16 | '@angular/common': 'ng.common',
|
17 | '@angular/router': 'ng.router',
|
18 | '@angular/forms': 'ng.forms',
|
19 | 'rxjs/Observable': 'Rx',
|
20 | 'rxjs/ReplaySubject': 'Rx',
|
21 | 'rxjs/add/operator/map': 'Rx.Observable.prototype',
|
22 | 'rxjs/add/operator/mergeMap': 'Rx.Observable.prototype',
|
23 | 'rxjs/add/observable/fromEvent': 'Rx.Observable',
|
24 | 'rxjs/add/observable/of': 'Rx.Observable'
|
25 | }
|
26 | }
|