var path = require('path');
var process = require('process');
var fs = require('fs');

module.exports = {
  context: path.join(process.env.PWD, 'frontend'),
  entry: "./index.js",
  target: 'node',
  output: {
    path: path.join(__dirname, 'dist'),
    filename: 'webpack.bundle.js'
  },
  module: {
    loaders: [
      { test: /\.js$/, loader: 'babel' }
    ]
  }
};

@@ -78,16 +78,50 @@
 e('fs');
+%0Avar webpack = require('webpack');
 %0A%0Amodule
@@ -316,16 +316,158 @@
 s'%0A  %7D,%0A
+  plugins: %5B%0A    new webpack.DefinePlugin(%7B%0A      'process.env': %7B%0A        NODE_ENV: JSON.stringify(process.env.NODE_ENV)%0A      %7D%0A    %7D)%0A  %5D,%0A
   module

Fix ` ReferenceError: process is not defined` on ReactPref