var path = require('path');

module.exports = {
  entry: path.resolve('./src/script/index.js'),
  devtool: 'eval',
  resolve: {
    extensions: ['.js', '.jsx', '.less', '.json'],
    alias: {
      'react': path.resolve('./node_modules/react'),
      'eth-lightwallet': path.resolve('./node_modules/eth-lightwallet/dist/lightwallet.min.js'),
    },
  },
  watchOptions: {
    poll: 5000,
    ignored: /node_modules/,
  },
  module : {
    loaders : [
      {
        test : /\.(js|jsx)$/,
        loader : 'babel',
        exclude: /node_modules/,
        query: {
          presets : ['es2015', 'react'],
          plugins: ['add-module-exports'],
        },
      },
      {
        test: /\.less$/,
        loader: 'style!css!less',
      },
      {
        test: /\.json$/,
        loader: 'json-loader',
      },
      {
        test: /\.(ttf|eot|svg|woff|woff2)(\?v=[0-9]\.[0-9]\.[0-9]|\?[0-9a-z#]+)?$/,
        loader: 'file-loader',
      },
    ],
  },
  output: {
    path: path.resolve('./public/build'),
    publicPath: '/build/',
    filename: 'app.js',
  },
}

var path = require('path');

module.exports = {
  entry: path.resolve('./src/script/index.js'),
  devtool: 'eval',
  resolve: {
    extensions: ['.js', '.jsx', '.less', '.json'],
    alias: {
      'react': path.resolve('./node_modules/react'),
      'eth-lightwallet': path.resolve('./node_modules/eth-lightwallet/dist/lightwallet.min.js'),
    },
  },
  watchOptions: {
    poll: 5000,
    ignored: /node_modules/,
  },
  module : {
    loaders : [
      {
        test : /\.(js|jsx)$/,
        loader : 'babel',
        exclude: /node_modules/,
        query: {
          presets : ['es2015', 'react'],
        },
      },
      {
        test: /\.less$/,
        loader: 'style!css!less',
      },
      {
        test: /\.json$/,
        loader: 'json-loader',
      },
      {
        test: /\.(ttf|eot|svg|woff|woff2)(\?v=[0-9]\.[0-9]\.[0-9]|\?[0-9a-z#]+)?$/,
        loader: 'file-loader',
      },
    ],
  },
  output: {
    path: path.resolve('./public/build'),
    publicPath: '/build/',
    filename: 'app.js',
  },
}

Remove broken reference to the 'add-module-exports' Babel plugin.
Remove broken reference to the 'add-module-exports' Babel plugin.
