title: webpack + babel - react, unexpected token 'import'
body: <p>I'm trying to make <a href="https://github.com/logary/logary-js/blob/master/examples/webpack/index.js">index.js</a> work with es2015.</p>
  
  <p><strong>Before directing me to .babelrc</strong>, note that I <strong>have</strong> added BOTH es2015 and react (to be sure, but there's no react here).</p>
  
  <p>It features</p>
  
  <pre><code>import { default as Logary, Targets, getLogger, build } from 'logary';
  </code></pre>
  
  <p>And here's .babelrc:</p>
  
  <pre><code>{
    "presets": ['es2015', 'react']
  }
  </code></pre>
  
  <p>And webpack.config.js</p>
  
  <pre><code>var webpack = require('webpack'),
      HtmlWebpackPlugin = require('html-webpack-plugin'),
      path = require('path');
  
  module.exports = {
    devtool: 'source-map',
    entry: [
      'webpack-hot-middleware/client?reload=true',
      './index.js'
    ],
    output: {
      path: path.resolve('./dist'),
      filename: '[name].js',
      publicPath: '/'
    },
    loaders: [
      { test: /\.js$/,
        loader: 'babel-loader',
        exclude: /node_modules/
      },
      { test: /\.css$/, loader: "style!css" },
      { test: /\.(png|jpg|jpeg|gif|woff)$/, loader: 'url?limit=8192' },
      { test: /\.(otf|eot|ttf)$/, loader: "file?prefix=font/" },
      { test: /\.svg$/, loader: "file" }
    ],
    plugins: [
      new HtmlWebpackPlugin({
        filename: 'index.html',
        template: 'index.template.html'
      }),
      new webpack.optimize.OccurenceOrderPlugin(),
      new webpack.HotModuleReplacementPlugin(),
      new webpack.NoErrorsPlugin(),
      new webpack.DefinePlugin({
        'process.env.NODE_ENV': JSON.stringify('development')
      })
    ],
    resolve: {
      extensions: ['', '.js']
    }
  }
  </code></pre>
  
  <p>Gives error:</p>
  
  <pre><code>ERROR in ./index.js
  Module parse failed: /Users/h/logary-js/examples/webpack/index.js Line 1: Unexpected token
  You may need an appropriate loader to handle this file type.
  | import { default as Logary, Targets, getLogger, build } from 'logary';
  |
  | // once per site/app
  </code></pre>
  
  <p>Why is it not handling the import-token?</p>