1 | import babel from 'rollup-plugin-babel';
|
2 | import json from 'rollup-plugin-json';
|
3 | import builtins from 'rollup-plugin-node-builtins';
|
4 | import globals from 'rollup-plugin-node-globals';
|
5 | import resolve from 'rollup-plugin-node-resolve';
|
6 |
|
7 | export default {
|
8 | input: 'index.js',
|
9 | external: ['commander', 'chalk', 'fs', 'util', 'process', 'child_process'],
|
10 | plugins: [
|
11 | json(),
|
12 | babel({
|
13 | exclude: 'node_modules/**',
|
14 | babelrc: false,
|
15 | presets: ['es2015-rollup', 'stage-0', 'stage-1']
|
16 | }),
|
17 | resolve({
|
18 |
|
19 |
|
20 |
|
21 | jsnext: true,
|
22 |
|
23 |
|
24 |
|
25 |
|
26 | main: true,
|
27 | }),
|
28 | globals(),
|
29 | builtins()
|
30 |
|
31 | ],
|
32 | context: 'global',
|
33 | name: 'movePropTypes',
|
34 | output: {
|
35 | file: 'build/mpt.js',
|
36 | format: 'cjs'
|
37 | }
|
38 | }; |
\ | No newline at end of file |