1 | import babel from 'rollup-plugin-babel';
|
2 | import resolve from 'rollup-plugin-node-resolve';
|
3 |
|
4 | export default {
|
5 | entry: 'src/index.js',
|
6 | format: 'umd',
|
7 | exports: 'named',
|
8 | moduleName: 'window',
|
9 | plugins: [
|
10 | resolve({
|
11 | customResolveOptions: {
|
12 | moduleDirectory: 'node_modules',
|
13 | },
|
14 | }),
|
15 | babel({
|
16 | exclude: 'node_modules/**',
|
17 | }),
|
18 | ],
|
19 | globals: {
|
20 | react: 'React',
|
21 | immutable: 'Immutable',
|
22 | },
|
23 | external: ['react', 'immutable'],
|
24 | dest: 'lib/react-immutable-pure-component.js',
|
25 | };
|