text: var webpack = require('webpack');
  
  module.exports = {
    context: __dirname,
    entry: "./src/index.js",
    output: {
      path: __dirname + "/build",
      filename: "app.js"
    },
    devtool: 'source-map',
    module: {
      rules: [
        {
          test: /\.js$/,
          exclude: /(node_modules|bower_components)/,
          use: {
            loader: 'babel-loader',
            // options: {
            //   presets: ['env']
            // }
          }
        }
      ]
    }  
    // plugins: debug ? [] : [
    //   new webpack.optimize.DedupePlugin(),
    //   new webpack.optimize.OccurenceOrderPlugin(),
    //   new webpack.optimize.UglifyJsPlugin({ mangle: false, sourcemap: false }),
    // ],
  };