const DedupePlugin = require('webpack/lib/optimize/DedupePlugin')

module.exports = {
    entry: [
        // Using this instead of transform-runtime,
        // see babel config below.
        'babel-polyfill',
    ],
    resolve: {
        extensions: [ "", ".js", ".jsx", ]
    },
    module: {
        loaders: [
            {
                test: /\.jsx?$/,
                loader: 'babel',
                exclude: /node_modules/,
                query: {
                    cacheDirectory: true,
                    babelrc: false,
                    presets: [
                        'es2015',
                        'stage-1',
                    ],
                    plugins: [
                        // broken in Webpack, doesn't work. Instead we load
                        // babel-polyfill as an entry, above. See
                        // https://discuss.babeljs.io/t/regeneratorruntime-is-not-defined-in-webpack-build/202
                        //'transform-runtime'
                    ],
                },
            },
        ],
    },
    plugins: [
        new DedupePlugin()
    ],
    devtool: "source-map",
}

@@ -63,157 +63,110 @@
 n')%0A
-%0Amodule.exports = %7B%0A    entry: %5B%0A        // Using this instead of transform-runtime,%0A        // see babel config below.%0A        'babel-polyfill',%0A   
+const UglifyJsPlugin = require('webpack/lib/optimize/UglifyJsPlugin')%0A%0Amodule.exports = %7B%0A    entry: %5B
  %5D,%0A
@@ -669,263 +669,8 @@
     
-// broken in Webpack, doesn't work. Instead we load%0A                        // babel-polyfill as an entry, above. See%0A                        // https://discuss.babeljs.io/t/regeneratorruntime-is-not-defined-in-webpack-build/202%0A                        //
 'tra
@@ -801,16 +801,47 @@
 Plugin()
+,%0A        new UglifyJsPlugin(),
 %0A    %5D,%0A

Use transform-runtime plugin for Babel, which I think might solve #114, but still using Babel and not Buble. I'd like to switch to Buble soon, but they have a bug in issue 206 of their tracker. Also enable minification of global build.