forked from gaperton/React-MVx
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathrollup.config.js
More file actions
29 lines (27 loc) · 794 Bytes
/
rollup.config.js
File metadata and controls
29 lines (27 loc) · 794 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
import resolve from 'rollup-plugin-node-resolve';
import uglify from 'rollup-plugin-uglify';
export default {
input : 'lib/index.js',
output : {
file : 'dist/index.js',
format : 'umd',
name : 'ReactMVx',
exports: 'named',
globals: {
react: 'React',
'type-r': 'Nested',
'prop-types': 'PropTypes' //just to silence warning. Actually does not matter. window.PropTypes is undefined, same result as using webpack
}
},
plugins: [
resolve(), //for support of `import X from "directory"` rather than verbose `import X from "directory/index"`
uglify()
],
sourcemap: true,
external: [
'react',
'type-r',
'prop-types',
'valuelink'
]
};