import resolve from 'rollup-plugin-node-resolve'
import babel from 'rollup-plugin-babel'
import commonjs from 'rollup-plugin-commonjs'
import pkg from './package.json'

const input = 'src/index'
const exclude = 'node_modules/**'

export default [
  // browser-friendly UMD build
  {
    input,
    output: {
      name: 'redux-starter-kit',
      file: pkg.browser,
      format: 'umd'
    },
    plugins: [
      babel({
        exclude
      }),
      resolve(),
      commonjs()
    ]
  },

  // CommonJS (for Node) and ES module (for bundlers) build.
  // (We could have three entries in the configuration array
  // instead of two, but it's quicker to generate multiple
  // builds from a single configuration where possible, using
  // the `targets` option which can specify `dest` and `format`)
  {
    input,
    output: [
      { file: pkg.main, format: 'cjs' },
      { file: pkg.module, format: 'es' }
    ],
    external: Object.keys(pkg.dependencies),
    plugins: babel({ exclude })
  }
]

@@ -128,16 +128,60 @@
 mmonjs'%0A
+import replace from 'rollup-plugin-replace'%0A
 import p
@@ -474,16 +474,36 @@
  exclude
+: %22node_modules/**%22,
 %0A      %7D
@@ -522,16 +522,104 @@
 olve(),%0A
+      replace(%7B%0A        'process.env.NODE_ENV': JSON.stringify('development')%0A      %7D),%0A
       co

Update UMD build setup