forked from DanielYKPan/date-time-picker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rollup.config.js
executable file
·41 lines (38 loc) · 1.1 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
37
38
39
40
import nodeResolve from 'rollup-plugin-node-resolve'
import uglify from 'rollup-plugin-uglify'
import alias from 'rollup-plugin-alias';
const rxPaths = require('rxjs/_esm5/path-mapping');
export default {
output: {
format: 'umd',
name: 'ng-pick-datetime',
globals: {
'@angular/cdk': 'vendor._angular_cdk',
'@angular/core': 'vendor._angular_core',
'@angular/common': 'vendor._angular_common',
'@angular/forms': 'vendor._angular_forms',
'@angular/animations': 'vendor._angular_animations',
},
},
external: [
'@angular/core',
'@angular/common',
'@angular/forms',
'@angular/animations',
'@angular/cdk',
'moment/moment',
],
onwarn: (warning) => {
const skip_codes = [
'THIS_IS_UNDEFINED',
'MISSING_GLOBAL_NAME'
];
if (skip_codes.indexOf(warning.code) != -1) return;
console.error(warning);
},
plugins: [
alias(rxPaths()),
nodeResolve({jsnext: true, module: true}),
uglify()
]
};