const path = require('path');
const webpack = require('webpack');

module.exports = {
  entry: [
    './lib/index.js'
  ],
  output: {
    path: path.resolve('build/'),
    filename: 'index.js',
    library: 'neoform',
    libraryTarget: 'umd',
    pathinfo: true
  },
  externals: {
    react: {
      root: 'React',
      commonjs2: 'react',
      commonjs: 'react',
      amd: 'react'
    }
  },
  resolve: {
    extensions: [ '.js', '.jsx' ]
  },
  module: {
    rules: [
      {
        test: /\.jsx?$/,
        exclude: path.resolve('node_modules/'),
        use: [
          {
            loader: 'babel-loader',
            options: {
              cacheDirectory: true
            }
          }
        ]
      }
    ]
  },
  plugins: [
    new webpack.DefinePlugin({
      'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV)
    })
  ]
};

@@ -381,16 +381,128 @@
 'react'%0A
+    %7D,%0A    'lodash.get': %7B%0A      commonjs2: 'lodash.get',%0A      commonjs: 'lodash.get',%0A      amd: 'lodash.get'%0A
     %7D%0A  

exclude `lodash.get` from build