title: ES7 async await functions with babel-loader not working
body: <p>I'm trying to run async await functions in JavaScript using the babel-loader of webpack. I'm using the following configuration:</p>
  
  <pre><code>{
    name: 'client',
    context: path.join(__dirname, 'src', 'static', 'scripts'),
    entry: {
      index: './index.js'
    },
    output: {
      path: path.join(__dirname, 'src', 'static', 'bundles'),
      filename: '[name].js'
    },
    module: {
      loaders: [
        {
          test: /\.js$/,
          loader: 'babel',
          query: {
            presets: ['es2015', 'stage-0']
          }
        }
      ]
    },
    resolve: {
      root: path.join(__dirname),
      fallback: path.join(__dirname, 'node_modules'),
      modulesDirectories: ['node_modules'],
    }
  }
  </code></pre>
  
  <p>but it keeps pushing an error with the following message:</p>
  
  <blockquote>
    <p>Module build failed: Error: ./src/static/scripts/index.js: Expected type "Identifier" with option {}</p>
  </blockquote>
  
  <p>My index.js has this content:</p>
  
  <pre><code>console.log('hi from app');
  
  async function hello() {
    return Promise.resolve('hi')
  }
  
  async function conversation () {
    const hi = await hello()
    console.log(hi);
  }
  </code></pre>