<NME> webpack.config.js
<BEF> const path = require('path')
const { plugins, rules } = require('webpack-atoms')

module.exports = {
  devtool: 'source-map',
  entry: {
    'react-widgets': './src/index.ts',
  },
  output: {
    path: path.join(__dirname, './lib/umd'),
    filename: '[name].js',
    library: 'ReactWidgets',
    libraryTarget: 'umd',
  },
  module: {
    rules: [{ ...rules.js({ rootMode: 'upward' }), test: /\.(j|t)sx?$/ }],
  },
  resolve: {
    extensions: ['.js', '.ts', '.tsx', '.json'],
  },
  externals: {
    react: {
      root: 'React',
      commonjs: 'react',
      commonjs2: 'react',
      amd: 'react',
    },
    'react-dom': {
      root: 'ReactDOM',
      commonjs: 'react-dom',
      commonjs2: 'react-dom',
      amd: 'react-dom',
    },
  },
  plugins: [
    plugins.define(),
    // plugins.uglify(),
      libraryTarget: 'umd'
    },
    externals: {
      react: { root: 'React', commonjs: 'react', commonjs2: 'react' },
      'react-dom': { root: 'ReactDOM', commonjs: 'react-dom', commonjs2: 'react-dom' },
    },
    plugins: [
      new webpack.DefinePlugin({

<MSG> bunch of style clean up

<DFF> @@ -38,8 +38,18 @@ if (PRODUCTION) {
       libraryTarget: 'umd'
     },
     externals: {
-      react: { root: 'React', commonjs: 'react', commonjs2: 'react' },
-      'react-dom': { root: 'ReactDOM', commonjs: 'react-dom', commonjs2: 'react-dom' },
+      react: {
+        root: 'React',
+        commonjs: 'react',
+        commonjs2: 'react',
+        amd: 'react'
+      },
+      'react-dom': {
+        root: 'ReactDOM',
+        commonjs: 'react-dom',
+        commonjs2: 'react-dom',
+        amd: 'react-dom',
+      },
     },
     plugins: [
       new webpack.DefinePlugin({

bunch of style clean up