title: Webpack: Bundle.js - Uncaught ReferenceError: process is not defined
body: <p>Here's my <strong>webpack.config.js</strong></p>
  
  <pre><code>"use strict";
  
  module.exports = {
      entry: ['./main.js'],
      output: { path: __dirname, filename: 'bundle.js' },
      module: {
          loaders: [
              {
                  test: /.js?$/,
                  loader: 'babel-loader',
                  exclude: /node_modules/,
                  query: {
                      presets: ['es2015', 'react']
                  }
              },
              {test: /\.json$/, loader: "json"},
          ]
      },
      externals: {
          React: 'react',
      },
      target: "node",
  };
  </code></pre>
  
  <p>And <strong>Main.js</strong></p>
  
  <pre><code>import React from 'react';
  import ReactDOM from 'react-dom';
  import {Table, Column, Cell} from 'fixed-data-table';
  import Chart from 'chartjs';
  import jQuery from 'jquery';
  import vis from 'vis';
  import babel from 'babel-core';
  </code></pre>
  
  <p>The <strong>Bundle.js</strong> is inserted in my Index.html. The browser then gives the error: </p>
  
  <pre><code>Uncaught ReferenceError: process is not defined
      at Object.measureMethods (bundle.js:1297)
      at Object.&lt;anonymous&gt; (bundle.js:530)
      at __webpack_require__ (bundle.js:20)
      at Object.&lt;anonymous&gt; (bundle.js:288)
      at __webpack_require__ (bundle.js:20)
      at Object.&lt;anonymous&gt; (bundle.js:158)
      at __webpack_require__ (bundle.js:20)
      at Object.&lt;anonymous&gt; (bundle.js:110)
      at __webpack_require__ (bundle.js:20)
      at Object.&lt;anonymous&gt; (bundle.js:90)
  </code></pre>
  
  <p>What should I change in the webpack.config.js to make this error go away?</p>