text: const path = require('path');
  const webpack = require('webpack');
  
  module.exports = {
    module: {
      rules: [
        {
          test: /\.js$/,
          exclude: /(node_modules|bower_components)/,
          use: {
            loader: 'babel-loader',
            options: {
              presets: ['env']
            }
          }
        }
      ]
    },
    entry: './src/index.js',
    output: {
      filename: 'TheDAG.js',
      path: path.resolve(__dirname, 'umd'),
      library: 'TheDAG',
      libraryTarget: 'umd'
    },
    plugins: [
      new webpack.optimize.UglifyJsPlugin({
        beautify: false,
        mangle: {
          screw_ie8: true,
          keep_fnames: true
        },
        compress: {
          screw_ie8: true
        },
        comments: false
      })
    ]
  };
  