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

module.exports = {
  cache: true,
  entry: path.join(__dirname, '/modules/index.js'),
  externals: {
    'react': 'React'
  },
  output: {
    path: path.join(__dirname, '/dist'),
    filename: 'radium.js',
    library: "Radium",
    libraryTarget: "umd"
  },
  module: {
    loaders: [
      {
        test: /\.js(x|)?$/,
        loader: 'babel-loader?stage=0'
      }
    ]
  }
}

@@ -158,35 +158,150 @@
 als:
+ %5B%0A   
  %7B%0A    
-'
+  %22
 react
-': '
+%22: %7B%0A        root: %22
 React
-'%0A  %7D
+%22,%0A        commonjs2: %22react%22,%0A        commonjs: %22react%22,%0A        amd: %22react%22%0A      %7D%0A    %7D%0A  %5D
 ,%0A  
@@ -395,16 +395,16 @@
 ry: 
-%22
+'
 Radium
-%22
+'
 ,%0A  
@@ -424,13 +424,13 @@
 et: 
-%22umd%22
+'umd'
 %0A  %7D

Fix externals in webpack config