// Common webpack configuration used by webpack.hot.config and webpack.rails.config.

var path = require("path");

module.exports = {
  context: __dirname, // the project dir
  entry: [ "./assets/javascripts/example" ],
  // In case you wanted to load jQuery from the CDN, this is how you would do it:
  // externals: {
  //   jquery: "var jQuery"
  // },
  resolve: {
    root: [path.join(__dirname, "scripts"),
           path.join(__dirname, "assets/javascripts"),
           path.join(__dirname, "assets/stylesheets")],
    extensions: ["", ".webpack.js", ".web.js", ".js", ".jsx", ".scss", ".css", "config.js"]
  },
  module: {
    loaders: [
      { test: require.resolve("react"), loader: "expose?React" }
    ]
  }
};

@@ -644,78 +644,8 @@
 s: %5B
-%0A      %7B test: require.resolve(%22react%22), loader: %22expose?React%22 %7D%0A    
 %5D%0A  

Remove exposing React as that was fixed in the React update