UNPKG

1.04 kBJavaScriptView Raw
1import babel from 'rollup-plugin-babel';
2import json from 'rollup-plugin-json';
3import builtins from 'rollup-plugin-node-builtins';
4import globals from 'rollup-plugin-node-globals';
5import resolve from 'rollup-plugin-node-resolve';
6
7export 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 // use "jsnext:main" if possible
20 // – see https://github.com/rollup/rollup/wiki/jsnext:main
21 jsnext: true, // Default: false
22
23 // use "main" field or index.js, even if it's not an ES6 module
24 // (needs to be converted from CommonJS to ES6
25 // – see https://github.com/rollup/rollup-plugin-commonjs
26 main: true, // Default: 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