-
Notifications
You must be signed in to change notification settings - Fork 0
/
rollup.config.js
33 lines (32 loc) · 916 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
import resolve from 'rollup-plugin-node-resolve';
import commonjs from '../rollup-plugin-commonjs/dist/rollup-plugin-commonjs.es.js';
import buble from 'rollup-plugin-buble';
import replace from 'rollup-plugin-replace';
export default [
{
input: 'src/main.js',
output: {
file: 'build/redux-ren.js',
format: 'umd',
name: 'ren'
},
plugins: [
commonjs({
include: 'node_modules/**',
namedExports: {
'node_modules/react/index.js': ['Component', 'PureComponent', 'Children', 'createElement'],
'node_modules/react-is/index.js': ['isValidElementType']
}
}),
resolve(),
buble({
exclude: ['node_modules/**'],
objectAssign: 'Object.assign'
}),
// see https://github.com/rollup/rollup/issues/487
replace({
'process.env.NODE_ENV': JSON.stringify('production')
})
]
}
];