var webpack = require('webpack');
var path = require('path');

var BUILD_DIR = path.resolve(__dirname, 'static/public');
var APP_DIR = path.resolve(__dirname, 'static/app');

var config = {
  entry: APP_DIR + '/index.jsx',
  output: {
    path: BUILD_DIR,
    filename: 'bundle.js'
  },
  module : {
    loaders : [
      {
        test : /\.jsx?/,
        include : APP_DIR,
        loader : 'babel'
      }
    ]
};

module.exports = config;

@@ -280,16 +280,90 @@
 s'%0A  %7D,%0A
+  resolve: %7B%0A    root: %5B%0A      path.resolve('./node_modules'),%0A    %5D%0A  %7D,%0A
   module
@@ -482,16 +482,20 @@
 %7D%0A    %5D%0A
+  %7D%0A
 %7D;%0A%0Amodu

Set up webpack