title: unexpected token < bundle js in reactjs app
body: <p>i am creating js app from scratch , and this is my webpack config file</p>
  
  <pre><code>import path from 'path';
  
  export default {
  
    entry: path.join(__dirname,'/client/index.js'),
    output: {
      path: '/'
    },
    module: {
      loaders: [
        {
          test: /\.js$/,
          include: path.join(__dirname,'client'),
          loaders: ['babel-loader'],
  
        }
      ]
    },
    resolve: {
      extensions: ['*', '.js']
    }
  }
  </code></pre>
  
  <p>this is my <code>.babelrc</code> file : </p>
  
  <pre><code>{
    "presets": ["es2015", "react"]
  }
  </code></pre>
  
  <p>this is my <code>index.html file</code> : </p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
    &lt;head&gt;
      &lt;title&gt;&lt;/title&gt;
    &lt;/head&gt;
    &lt;body&gt;
      &lt;div id="root"&gt;&lt;/div&gt;
  
      &lt;script src="bundle.js"&gt;&lt;/script&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>this is my <code>client/index.js</code></p>
  
  <pre><code>import React from 'react';
  import { render } from 'react-dom';
  import App from './Component/App';
  
  render(&lt;App /&gt;, document.getElementById("root"));
  </code></pre>
  
  <p>this is my App component</p>
  
  <pre><code>import React from 'react';
  
  export default () =&gt; {
    return &lt;h1&gt;Hello from react&lt;/h1&gt;;
  }
  </code></pre>
  
  <p>this is dependencies used by the app</p>
  
  <pre><code>{
    "dependencies": {
      "express": "^4.15.3",
      "react": "^15.6.1",
      "react-dom": "^15.6.1"
    },
    "devDependencies": {
      "babel-cli": "^6.24.1",
      "babel-loader": "^7.1.1",
      "babel-preset-es2015": "^6.24.1",
      "babel-preset-react": "^6.24.1",
      "babel-preset-stage-2": "^6.24.1",
      "nodemon": "^1.11.0",
      "webpack": "^3.2.0",
      "webpack-dev-middleware": "^1.11.0",
      "webpack-dev-server": "^2.5.1"
    }
  }
  </code></pre>
  
  <p>build is success but i got an error <code>Unexpected token &lt; bundle.js:1</code> after running the app, 
  anyone know what is causing the error? thank</p>