forked from czeckd/angular-svg-icon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rollup.config.js
36 lines (35 loc) · 966 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
35
export default {
format: 'umd',
moduleName: 'angular-svg-icon',
external: [
'@angular/common',
'@angular/core',
'@angular/http',
'rxjs/add/observable/of',
'rxjs/add/operator/do',
'rxjs/add/operator/finally',
'rxjs/add/operator/map',
'rxjs/add/operator/share',
'rxjs/Observable'
],
globals: {
'@angular/common': 'ng.common',
'@angular/core': 'ng.core',
'@angular/http': 'ng.http',
'rxjs/add/observable/of' : 'Rx.Observable',
'rxjs/add/operator/do' : 'Rx.Observable.prototype',
'rxjs/add/operator/finally' : 'Rx.Observable.prototype',
'rxjs/add/operator/map' : 'Rx.Observable.prototype',
'rxjs/add/operator/share' : 'Rx.Observable.prototype',
'rxjs/Observable' : 'Rx'
},
onwarn: ( warning ) => {
const skip_codes = [
'THIS_IS_UNDEFINED',
'MISSING_GLOBAL_NAME'
];
if ( skip_codes.indexOf(warning.code) != -1 )
return;
console.error(warning);
}
};