<p dir="auto">error code ↓↓↓↓</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/19584991/76744159-c5e04080-67ae-11ea-869f-f38cda28c537.png"><img src="https://user-images.githubusercontent.com/19584991/76744159-c5e04080-67ae-11ea-869f-f38cda28c537.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">` ERROR in ../pc-react-next/src/index.js<br>
Module build failed: SyntaxError: /Users/tezml/Desktop/pc-react-next/src/index.js: Unexpected token (362:9)</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="  360 | 		let {levels=[], names={}} = level1 
  361 | 
&gt; 362 | 		return &lt;div className={divider ? &quot;cndzk-entrance-divider&quot; : 'cndzk-entrance'} style={style}&gt;`"><pre class="notranslate"><code class="notranslate">  360 | 		let {levels=[], names={}} = level1 
  361 | 
&gt; 362 | 		return &lt;div className={divider ? "cndzk-entrance-divider" : 'cndzk-entrance'} style={style}&gt;`
</code></pre></div>
<p dir="auto">import  ↓↓↓↓</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/19584991/76745653-38522000-67b1-11ea-93c8-841864618001.png"><img src="https://user-images.githubusercontent.com/19584991/76745653-38522000-67b1-11ea-93c8-841864618001.png" alt="image" style="max-width: 100%;"></a><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/19584991/76745692-4607a580-67b1-11ea-8fbe-09e22ac7bec5.png"><img src="https://user-images.githubusercontent.com/19584991/76745692-4607a580-67b1-11ea-8fbe-09e22ac7bec5.png" alt="image" style="max-width: 100%;"></a><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/19584991/76745713-4f910d80-67b1-11ea-833e-2a2f30a317fd.png"><img src="https://user-images.githubusercontent.com/19584991/76745713-4f910d80-67b1-11ea-833e-2a2f30a317fd.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto"><code class="notranslate">transform-runtime</code> plugin usage option for disabling polyfills is ignored when used to transpile code with async functions.</p>
<h3 dir="auto">Input Code</h3>
<p dir="auto">I am able to reproduce the bug using the vue <a href="https://github.com/vuejs-templates/webpack">webpack template</a> starter pack.</p>
<p dir="auto">To create a fresh project:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ npm install -g vue-cli
$ vue init webpack vue-test

  This will install Vue 2.x version of the template.

  For Vue 1.x use: vue init webpack#1.0 vue-test

? Project name vue-test
? Project description Playground for Vue!
? Author Suhas Karanth &lt;sudo.suhas@gmail.com&gt;
? Vue build runtime
? Install vue-router? Yes
? Use ESLint to lint your code? No
? Setup unit tests with Karma + Mocha? No
? Setup e2e tests with Nightwatch? No

   vue-cli · Generated &quot;vue-test&quot;.

   To get started:
   
     cd vue-test
     npm install
     npm run dev
   
   Documentation can be found at https://vuejs-templates.github.io/webpack

$ cd vue-test/
$ npm install"><pre class="notranslate"><code class="notranslate">$ npm install -g vue-cli
$ vue init webpack vue-test

  This will install Vue 2.x version of the template.

  For Vue 1.x use: vue init webpack#1.0 vue-test

? Project name vue-test
? Project description Playground for Vue!
? Author Suhas Karanth &lt;sudo.suhas@gmail.com&gt;
? Vue build runtime
? Install vue-router? Yes
? Use ESLint to lint your code? No
? Setup unit tests with Karma + Mocha? No
? Setup e2e tests with Nightwatch? No

   vue-cli · Generated "vue-test".

   To get started:
   
     cd vue-test
     npm install
     npm run dev
   
   Documentation can be found at https://vuejs-templates.github.io/webpack

$ cd vue-test/
$ npm install
</code></pre></div>
<p dir="auto">Modify <code class="notranslate">.babelrc</code> to have <code class="notranslate">["transform-runtime", { "polyfill": false }]</code>.</p>
<p dir="auto">Add the following to <code class="notranslate">src/main.js</code>:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="async function test() {
    await Promise.resolve(true);
}"><pre class="notranslate"><span class="pl-k">async</span> <span class="pl-k">function</span> <span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
    <span class="pl-k">await</span> <span class="pl-v">Promise</span><span class="pl-kos">.</span><span class="pl-en">resolve</span><span class="pl-kos">(</span><span class="pl-c1">true</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<h3 dir="auto">Babel Configuration (.babelrc, cli command)</h3>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// .babelrc
{
  &quot;presets&quot;: [
    [&quot;env&quot;, { &quot;modules&quot;: false }],
    &quot;stage-2&quot;
  ],
  &quot;plugins&quot;: [[&quot;transform-runtime&quot;, { &quot;polyfill&quot;: false }]],
  &quot;comments&quot;: false,
  &quot;env&quot;: {
    &quot;test&quot;: {
      &quot;plugins&quot;: [ &quot;istanbul&quot; ]
    }
  }
}

// cli command
npm run build --report"><pre class="notranslate"><span class="pl-c">// .babelrc</span>
<span class="pl-kos">{</span>
  <span class="pl-s">"presets"</span>: <span class="pl-kos">[</span>
    <span class="pl-kos">[</span><span class="pl-s">"env"</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-s">"modules"</span>: <span class="pl-c1">false</span> <span class="pl-kos">}</span><span class="pl-kos">]</span><span class="pl-kos">,</span>
    <span class="pl-s">"stage-2"</span>
  <span class="pl-kos">]</span><span class="pl-kos">,</span>
  <span class="pl-s">"plugins"</span>: <span class="pl-kos">[</span><span class="pl-kos">[</span><span class="pl-s">"transform-runtime"</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-s">"polyfill"</span>: <span class="pl-c1">false</span> <span class="pl-kos">}</span><span class="pl-kos">]</span><span class="pl-kos">]</span><span class="pl-kos">,</span>
  <span class="pl-s">"comments"</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
  <span class="pl-s">"env"</span>: <span class="pl-kos">{</span>
    <span class="pl-s">"test"</span>: <span class="pl-kos">{</span>
      <span class="pl-s">"plugins"</span>: <span class="pl-kos">[</span> <span class="pl-s">"istanbul"</span> <span class="pl-kos">]</span>
    <span class="pl-kos">}</span>
  <span class="pl-kos">}</span>
<span class="pl-kos">}</span>

<span class="pl-c">// cli command</span>
<span class="pl-s1">npm</span> <span class="pl-s1">run</span> <span class="pl-s1">build</span> <span class="pl-c1">--</span><span class="pl-s1">report</span></pre></div>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">Since polyfill option is disabled, core-js modules should not be exported.</p>
<h3 dir="auto">Current Behavior</h3>
<p dir="auto">The polyfills are added despite the <code class="notranslate">.babelrc</code> config<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/22251956/23338239/3cd8c52e-fc2b-11e6-8ab4-3e5bd9732309.png"><img src="https://cloud.githubusercontent.com/assets/22251956/23338239/3cd8c52e-fc2b-11e6-8ab4-3e5bd9732309.png" alt="image" style="max-width: 100%;"></a></p>
<h3 dir="auto">Context</h3>
<p dir="auto">I am tying to export my choice of polyfill of promise library but the build ends up exporting both the polyfill library as well as the core-js promise version.</p>


<h3 dir="auto">Your Environment</h3>
<table role="table">
<thead>
<tr>
<th>software</th>
<th>version</th>
</tr>
</thead>
<tbody>
<tr>
<td>Babel</td>
<td>6.22.1</td>
</tr>
<tr>
<td>node</td>
<td>6.9.4</td>
</tr>
<tr>
<td>npm</td>
<td>3.10.10</td>
</tr>
<tr>
<td>Operating System</td>
<td>ubuntu 16.04</td>
</tr>
</tbody>
</table>