title: Getting error "You may need an appropriate loader to handle this file type." when using Webpack to compile ES6 assets
body: <p>I using Webpack with Babel to compile ES6 assets in my Nodejs application, but I am getting the following error message:</p>
  
  <pre><code>You may need an appropriate loader to handle this file type.
  |
  |       const addMrnObj = {
  |         ...jsonObj,
  |         optionalMrn: optionalMrn
  |       };
   @ ./config/eventSource/eventSourceCall.js 5:18-40
   @ ./src/app.js
   @ multi ./src/app.js
  </code></pre>
  
  <p>I am using Webpack of version 2.2.1 and babel-preset-es2015 of version 6.22.0</p>
  
  <p>Below is my babel.rc configuration</p>
  
  <pre><code>{
    "presets": [
      "es2015"
    ],
    "plugins": [
      "transform-flow-strip-types",
      "transform-object-rest-spread",
      "transform-class-properties",
      "syntax-class-properties"
    ]
  }
  </code></pre>
  
  <p>And this is my Webpack configuration</p>
  
  <pre><code>var webpack = require('webpack');
  var path = require('path');
  var fs = require('fs');
  var BabiliPlugin = require('babili-webpack-plugin');
  var CopyWebpackPlugin = require('copy-webpack-plugin');
  
  var BUILD_DIR = path.resolve(__dirname, 'dist');
  var APP_DIR = path.resolve(__dirname, 'src');
  
  var config = {
    entry: [
      APP_DIR + '/app.js',
    ],
    target: 'node',
    output: {
      path: BUILD_DIR,
      filename: 'backend.js'
    },
    plugins: [
      new BabiliPlugin(),
      new CopyWebpackPlugin([{
        from: './config',
        to: 'config'
      }])
    ],
    module: {
      loaders: [
        {
          test: /\.js?/,
          exclude: /node_modules/,
          include: [ APP_DIR ],
          loader: 'babel-loader'
        }
      ]
    }
  };
  
  module.exports = config;
  </code></pre>
  
  <p>Can someone point out what additional changes I need to make to resolve this error.</p>