const webpack = require('webpack');

module.exports = {
  entry: [
    './index.js'
  ],
  resolve: {
    extensions: ['', '.js', '.jsx', '.css']
  },
  module: {
    loaders: [{
      test: /\.jsx?$/,
      loader: 'babel',
      exclude: /node_modules/
    }, {
      test: /\.css$/,
      loader: 'style-loader!css-loader'
    }]
  },
  plugins: [
    new webpack.DefinePlugin({ 'process.env.NODE_ENV': JSON.stringify('production') })
  ],
  output: {
    path: 'lib',
    filename: 'index.js',
    library: 'react-splitter-layout',
    libraryTarget: 'umd'
  },
  externals: {
    react: 'react'
  }
};

@@ -1,8 +1,45 @@
+const %7B resolve %7D = require('path');%0A
 const we
@@ -153,12 +153,8 @@
 s: %5B
-'', 
 '.js
@@ -197,20 +197,27 @@
     
-loaders: %5B%7B%0A
+rules: %5B%0A      %7B%0A  
     
@@ -245,22 +245,21 @@
     
-loader
+  use
 : 'babel
 ',%0A 
@@ -254,19 +254,28 @@
 : 'babel
+-loader
 ',%0A
+  
       ex
@@ -304,13 +304,17 @@
     
+ 
+ 
 %7D, %7B%0A
+  
     
@@ -341,47 +341,88 @@
     
-loader: 'style-loader!css-loader'%0A    %7D
+  use: %5B%0A          'style-loader',%0A          'css-loader'%0A        %5D%0A      %7D%0A    
 %5D%0A  
@@ -554,14 +554,34 @@
 ath:
+ resolve(__dirname,
  'lib'
+)
 ,%0A  
@@ -705,16 +705,48 @@
  'react'
+,%0A    'prop-types': 'prop-types'
 %0A  %7D%0A%7D;%0A

Update webpack config for version 3