git.fiddlerwoaroof.com
react-demo/rollup.config.js
d230a7a2
 import babel from 'rollup-plugin-babel';
 import npm_resolve from 'rollup-plugin-node-resolve';
 import commonjs from 'rollup-plugin-commonjs';
 import replace from 'rollup-plugin-replace';
 import livereload from 'rollup-plugin-livereload';
 
 export default {
   input: 'main.js',
   output: {
a00b5a50
     file: 'dist/main.o.js',
d230a7a2
     browser: true,
     sourcemap: true,
   format: 'iife',
   },
   plugins: [
636eaffe
     //livereload({watch: 'dist'}),
d230a7a2
     replace({'process.env.NODE_ENV': JSON.stringify('development')}),
a00b5a50
     babel({ exclude: 'node_modules/**'  }),
d230a7a2
     npm_resolve({ module: true, jsnext: true, main: true, browser: true }),
     commonjs(),
   ]
636eaffe
 };