-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathrollup-umd-min.conf.js
More file actions
38 lines (37 loc) · 836 Bytes
/
Copy pathrollup-umd-min.conf.js
File metadata and controls
38 lines (37 loc) · 836 Bytes
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
import { terser } from 'rollup-plugin-terser';
import resolve from '@rollup/plugin-node-resolve';
export default {
input: 'dist/esm5/index.js',
output: {
file: 'dist/bundles/tabs.umd.min.js',
name: 'Tabs',
format: 'umd',
sourcemap: true,
globals: {
'react': 'React',
'react-dom': 'ReactDOM',
'prop-types': 'PropTypes'
}
},
external: [
'react',
'react-dom',
'prop-types'
],
plugins: [
resolve({
browser: true,
dedupe: ['tslib']
}),
terser({
output: {
comments: false,
},
compress: {
ecma: 5,
pure_getters: true,
passes: 3,
}
})
]
};