title: Webpack includes unused library in bundle.js
body: <p>I don't understand why...</p>
  
  <p>Include like 100Kbytes of a unused library:</p>
  
  <pre><code>/*!
   * The buffer module from node.js, for the browser.
   *
   * @author   Feross Aboukhadijeh &lt;feross@feross.org&gt; &lt;http://feross.org&gt;
   * @license  MIT
   */
  ...
  ...
  </code></pre>
  
  <p>My <code>webpack.deploy.config.js</code></p>
  
  <pre><code>    'use strict';
  
  /* eslint-env node */
  
  const webpack = require('webpack');
  const CopyWebpackPlugin = require('copy-webpack-plugin');
  
  const config = {
    addVendor: function (name, path) {
      this.resolve.alias[name] = path;
      this.module.noParse.push(new RegExp(`^${name}$`));
    },
  
    node: {
      Buffer: false,
      global: false,
      process: false,
      setImmediate: false
    },
  
    entry: {
      app: [
        './src/main.jsx'
      ],
      vendors: [
        'jquery',
        'semantic',
        'semantic.css',
        'react',
        'react-dom'
      ]
    },
  
    resolve: { alias: {} },
  
    output: {
      path: `${__dirname}/build`,
      publicPath: '/',
      filename: 'bundle.js'
    },
  
    plugins: [
      new webpack.optimize.OccurenceOrderPlugin(),
      new CopyWebpackPlugin([{ from: './src/static', to: './' }]),
      new webpack.optimize.CommonsChunkPlugin('app', null, false),
      new webpack.optimize.CommonsChunkPlugin('vendors', 'vendors.js'),
      new webpack.ProvidePlugin({
        $: 'jquery',
        jQuery: 'jquery'
      })
    ],
  
    module: {
      noParse: [],
      loaders: [
        {
          test: /\.(jsx)?$/,
          exclude: /node_modules/,
          loader: 'babel'
        },
        {
          test: /\.(js)$/,
          loader: 'babel',
          exclude: [/node_modules/, /bower_components/]
        },
        {
          test: /\.(css)$/,
          loader: 'style!css'
        },
        {
          test: /\.(scss)$/,
          loader: 'style!css!sass'
        },
        {
          test: /\.(less)$/,
          loader: 'style!css!less'
        },
        {
          test: /\.(png|woff|woff2|eot|ttf|svg)$/, loader: 'url-loader?limit=100000'
        }
      ]
    }
  };
  
  config.addVendor('jquery', `${__dirname}/bower_components/jquery/dist/jquery.min.js`);
  config.addVendor('semantic', `${__dirname}/bower_components/semantic/dist/semantic.min.js`);
  config.addVendor('semantic.css', `${__dirname}/bower_components/semantic/dist/semantic.min.css`);
  config.addVendor('react', `${__dirname}/bower_components/react/react.min.js`);
  config.addVendor('react-dom', `${__dirname}/bower_components/react/react-dom.min.js`);
  
  module.exports = config;
  </code></pre>
  
  <p>I am using <code>es6</code> with <code>babel</code> and <code>react</code>, the code works well, just trying to minify the package.</p>
  
  <p>Also uses a cross library (node/browser) that use <code>http</code> and <code>https</code>, but I think its not the problem.</p>