const path = require('path')
const webpack = require('webpack')
const appName = 'formatter'
const outputFile = appName + '.js'

const PATH = {
  source: path.join(__dirname, 'src'),
  dist: path.join(__dirname, 'dist'),
  entry: path.join(__dirname, 'src', 'index.js')
}

const config = {
  entry: PATH.entry,
  devtool: 'eval-source-map',
  output: {
    path: PATH.dist,
    filename: outputFile,
    library: [appName],
    libraryTarget: 'umd'
  },
  module: {
    loaders: [{
      test: /(\.jsx|\.js)$/,
      loader: 'babel',
      exclude: /(node_modules|bower_components)/,
      query: {
        presets: ['react', 'es2015', 'stage-1']
      }
    }, {
      test: /(\.jsx|\.js)$/,
      loader: 'eslint-loader',
      exclude: /node_modules/
    }]
  },
  resolve: {
    root: path.resolve('./src'),
    extensions: ['', '.js', '.jsx']
  },
  plugins: [
      new webpack.optimize.UglifyJsPlugin({
        compress: {
          warnings: true
        }
     })
  ]
}

module.exports = config

@@ -542,17 +542,16 @@
 clude: /
-(
 node_mod
@@ -558,26 +558,8 @@
 ules
-%7Cbower_components)
 /,%0A 
@@ -762,16 +762,17 @@
   root: 
+%5B
 path.res
@@ -780,16 +780,67 @@
 lve(
-'./src')
+__dirname, 'src'), path.resolve(__dirname, 'node_modules')%5D
 ,%0A  

Update config