forked from richnologies/ngx-stripe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrollup.config.js
34 lines (32 loc) · 843 Bytes
/
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
import resolve from 'rollup-plugin-node-resolve';
import sourcemaps from 'rollup-plugin-sourcemaps';
const globals = {
'@angular/core': 'ng.core',
'@angular/common': 'ng.common',
'rxjs/Observable': 'Rx',
'rxjs/Observer': 'Rx',
'rxjs/add/observable/combineLatest': 'Rx',
'rxjs/add/observable/fromPromise': 'Rx',
'rxjs/add/observable/of': 'Rx',
'rxjs/add/operator/map': 'Rx',
'rxjs/add/operator/filter': 'Rx',
'rxjs/add/operator/switchMap': 'Rx',
'rxjs/add/operator/first': 'Rx',
'rxjs/Observable': 'Rx',
'rxjs/BehaviorSubject': 'Rx'
};
export default {
external: Object.keys(globals),
plugins: [resolve(), sourcemaps()],
onwarn: () => {
return;
},
output: {
format: 'umd',
name: 'ng.stripe',
globals: globals,
sourcemap: true,
exports: 'named',
amd: { id: 'ngx-stripe' }
}
};