<p dir="auto">The issue at <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="175602084" data-permission-text="Title is private" data-url="https://github.com/babel/babel/issues/4273" data-hovercard-type="issue" data-hovercard-url="/babel/babel/issues/4273/hovercard" href="https://github.com/babel/babel/issues/4273">#4273</a> was closed but the problem still exists. There is even a <a href="https://github.com/julien-f/babel-t7334">repo</a> with a repro</p>
<h3 dir="auto">Input Code</h3>


<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export * from 'module'"><pre class="notranslate"><span class="pl-k">export</span> <span class="pl-c1">*</span> <span class="pl-k">from</span> <span class="pl-s">'module'</span></pre></div>
<h3 dir="auto">Babel Configuration (.babelrc, package.json, cli command)</h3>

<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
    &quot;plugins&quot;: [
      &quot;transform-runtime&quot;
    ],
    &quot;presets&quot;: [
      &quot;es2015&quot;
    ]
  }"><pre class="notranslate"><span class="pl-kos">{</span>
    <span class="pl-s">"plugins"</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">"presets"</span>: <span class="pl-kos">[</span>
      <span class="pl-s">"es2015"</span>
    <span class="pl-kos">]</span>
  <span class="pl-kos">}</span></pre></div>
<h3 dir="auto">Expected Behavior</h3>


<p dir="auto">There should be no <code class="notranslate">import</code> statement in the output file</p>
<h3 dir="auto">Current Behavior</h3>


<p dir="auto">The file contains</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import _Object$defineProperty from 'babel-runtime/core-js/object/define-property';
import _Object$keys from 'babel-runtime/core-js/object/keys';"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">_Object$defineProperty</span> <span class="pl-k">from</span> <span class="pl-s">'babel-runtime/core-js/object/define-property'</span><span class="pl-kos">;</span>
<span class="pl-k">import</span> <span class="pl-s1">_Object$keys</span> <span class="pl-k">from</span> <span class="pl-s">'babel-runtime/core-js/object/keys'</span><span class="pl-kos">;</span></pre></div>
<h3 dir="auto">Possible Solution</h3>


<p dir="auto">A <strong>workaround</strong> is adding the <code class="notranslate">polyfill: false</code> in the transform config:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
  &quot;presets&quot;: [&quot;es2015&quot;],
  &quot;plugins&quot;: [
    [
      &quot;transform-runtime&quot;,
      { &quot;polyfill&quot;: false }
    ]
  ]
}"><pre class="notranslate"><span class="pl-kos">{</span>
  <span class="pl-s">"presets"</span>: <span class="pl-kos">[</span><span class="pl-s">"es2015"</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></pre></div>
<p dir="auto">But this may not suit all cases</p>
<h3 dir="auto">Context</h3>


<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.8.0</td>
</tr>
<tr>
<td>node</td>
<td>6.9.1</td>
</tr>
<tr>
<td>npm</td>
<td>3.10.10</td>
</tr>
<tr>
<td>Operating System</td>
<td>osx</td>
</tr>
</tbody>
</table>
<blockquote>
<p dir="auto">Issue originally made by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/brnrd/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/brnrd">@brnrd</a></p>
</blockquote>
<h3 dir="auto">Bug information</h3>
<ul dir="auto">
<li><strong>Babel version:</strong> 6.3.26</li>
<li><strong>Node version:</strong> 5.2.0</li>
<li><strong>npm version:</strong> 3.3.12</li>
</ul>
<h3 dir="auto">Options</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="using babel-cli, &quot;babel --presets es2015&quot;"><pre class="notranslate"><code class="notranslate">using babel-cli, "babel --presets es2015"
</code></pre></div>
<h3 dir="auto">Input code</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="try {
  function Person() {
    this.age = 0;

    this.incAge = () =&gt; {
      this.age = this.age + 1;
    }
  }
} catch (e) { ... }"><pre class="notranslate"><code class="notranslate">try {
  function Person() {
    this.age = 0;

    this.incAge = () =&gt; {
      this.age = this.age + 1;
    }
  }
} catch (e) { ... }
</code></pre></div>
<h3 dir="auto">Description</h3>
<p dir="auto">When compiling this code using the es2015 preset, the resulting code is:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="try {
    var _this = this;

    var Person = function Person() {
        this.age = 0;

        this.incAge = function () {
            _this.age = _this.age + 1;
        };
    };
} catch (e) { ... }"><pre class="notranslate"><code class="notranslate">try {
    var _this = this;

    var Person = function Person() {
        this.age = 0;

        this.incAge = function () {
            _this.age = _this.age + 1;
        };
    };
} catch (e) { ... }
</code></pre></div>
<p dir="auto">Note that the position of the var _this = this; is wrong since it will cause _this.age to be an undefined property of _this.</p>
<p dir="auto">Outside the try-catch, the code compiles fine.</p>