title: React, babel, webpack not parsing jsx code
body: <p>webpack.config.js</p>
  
  <pre><code>module.exports = {
    context: __dirname + "/app",
    entry: {
      javascript: "./app.js",
      html: "./index.html",
    },
    resolve: {
     extensions: ['', '.js', '.jsx']
   },
    output: {
      filename: "app.js",
      path: __dirname + "/dist",
    },
    module: {
      loaders: [
        {
          test: /\.jsx?$/,
          exclude: /node_modules/,
          loader: "babel-loader",
        },
        {
          test: /\.html$/,
          loader: "file?name=[name].[ext]",
        },
      ],
    },
  }
  </code></pre>
  
  <p>package.json</p>
  
  <pre><code>{
    "name": "react-webpack-project",
    "version": "1.0.0",
    "description": "",
    "main": "index.js",
    "scripts": {
      "test": "echo \"Error: no test specified\" &amp;&amp; exit 1"
    },
    "author": "",
    "license": "ISC",
    "devDependencies": {
      "babel": "^6.0.15",
      "babel-core": "^6.0.20",
      "babel-loader": "^6.0.1",
      "file-loader": "^0.8.4",
      "webpack": "^1.12.2"
    },
    "dependencies": {
      "react": "^0.14.2"
    }
  }
  </code></pre>
  
  <p>app/app.js</p>
  
  <pre><code>import React from "react";
  import Greeting from "./greeting";
  
  React.render(
    &lt;Greeting name="World"/&gt;,
    document.body
  );
  </code></pre>
  
  <p>I have seen the exact same questions after searching around, but none of the answers seemed to apply to me. I am getting the following error when running <code>webpack</code> :</p>
  
  <p>ERROR in ./app.js<br>
  Module build failed: SyntaxError: path/to/project/react-webpack-project/app/app.js: Unexpected token (5:2)                                                                                                                  </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>React.render(
    &lt;Greeting name="World"/&gt;,
    document.body
  );</code></pre>
  </div>
  </div>
  </p>
  
  <p>I am not sure why I am getting this error still. I am guessing it has something to do with my webpack.config.js file, but not 100% what the problem is.</p>