title: Babel / Rollup errors transpiling and bundling ES2017
body: <p>I'm getting an error transpiling <code>ES2017</code> JavaScript (specifically <code>async/await</code> functions) into <code>ES5</code> using Rollup and Babel:</p>
  
  <blockquote>
    <p>Error transforming \src\index.js with 'babel' plugin: Options
    {"modules":false} passed to
    \node_modules\babel-preset-es2017\lib\index.js which does not accept
    options.</p>
  </blockquote>
  
  <p>My <code>.babelrc</code> file:</p>
  
  <pre><code>{
    "presets": [
      "es2017"
    ],
    "plugins": [
      "transform-runtime"
    ],
    "comments": false
  }
  </code></pre>
  
  <p>Naturally, the error goes away if I change the <code>presets</code> from <code>es2017</code> to <code>es2015</code> and comment out the <code>async/await</code> code.  </p>
  
  <p>Note that while the application uses <code>ES2017</code> features (i.e. <code>async/await</code>), it is published as an NPM package (as an <code>ES6 (ES2015)</code> module) that is later transpiled to generic <code>ES5 (ES2009)</code>.</p>
  
  <p>How do I get past this error and get my <code>ES2017</code> happily transpiling to <code>ES5</code>?</p>