title: Babel 6 regeneratorRuntime is not defined
body: <p>I'm trying to use async/await from scratch on Babel 6, but I'm getting <code>regeneratorRuntime</code> is not defined.</p>
  <p>.babelrc file</p>
  <pre><code>{
      &quot;presets&quot;: [ &quot;es2015&quot;, &quot;stage-0&quot; ]
  }
  </code></pre>
  <p>package.json file</p>
  <pre><code>&quot;devDependencies&quot;: {
      &quot;babel-core&quot;: &quot;^6.0.20&quot;,
      &quot;babel-preset-es2015&quot;: &quot;^6.0.15&quot;,
      &quot;babel-preset-stage-0&quot;: &quot;^6.0.15&quot;
  }
  </code></pre>
  <p>.js file</p>
  <pre><code>&quot;use strict&quot;;
  async function foo() {
    await bar();
  }
  function bar() { }
  exports.default = foo;
  </code></pre>
  <p>Using it normally without the async/await works just fine. Any ideas what I'm doing wrong?</p>