<p dir="auto">The transform-runtime plugin results in errors when doing catch-all reexporting (<code class="notranslate">export * from 'something';</code>).</p>
<h3 dir="auto">Input Code</h3>
<p dir="auto">package.json:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&quot;plugins&quot;: [&quot;transform-runtime&quot;]"><pre class="notranslate"><code class="notranslate">"plugins": ["transform-runtime"]
</code></pre></div>
<p dir="auto">Say you have 3 files:</p>
<p dir="auto">a.js:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const a = 1;
export { a };"><pre class="notranslate"><code class="notranslate">const a = 1;
export { a };
</code></pre></div>
<p dir="auto">b.js:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="export * from './a.js';"><pre class="notranslate"><code class="notranslate">export * from './a.js';
</code></pre></div>
<p dir="auto">c.js:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import a from './b.js';"><pre class="notranslate"><code class="notranslate">import a from './b.js';
</code></pre></div>
<p dir="auto">The result from running <code class="notranslate">babel-node</code> is:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import _Object$defineProperty from 'babel-runtime/core-js/object/define-property';
^^^^^^

SyntaxError: Unexpected token import
    at createScript (vm.js:80:10)
    at Object.runInThisContext (vm.js:139:10)
    at Module._compile (module.js:588:28)
    at loader (/home/cmcdragonkai/Projects/js-virtualfs/node_modules/babel-register/lib/node.js:144:5)
    at Object.require.extensions.(anonymous function) [as .js] (/home/cmcdragonkai/Projects/js-virtualfs/node_modules/babel-register/lib/node.js:154:7)
    at Module.load (module.js:545:32)
    at tryModuleLoad (module.js:508:12)
    at Function.Module._load (module.js:500:3)
    at Module.require (module.js:568:17)
    at require (internal/module.js:11:18)"><pre class="notranslate"><code class="notranslate">import _Object$defineProperty from 'babel-runtime/core-js/object/define-property';
^^^^^^

SyntaxError: Unexpected token import
    at createScript (vm.js:80:10)
    at Object.runInThisContext (vm.js:139:10)
    at Module._compile (module.js:588:28)
    at loader (/home/cmcdragonkai/Projects/js-virtualfs/node_modules/babel-register/lib/node.js:144:5)
    at Object.require.extensions.(anonymous function) [as .js] (/home/cmcdragonkai/Projects/js-virtualfs/node_modules/babel-register/lib/node.js:154:7)
    at Module.load (module.js:545:32)
    at tryModuleLoad (module.js:508:12)
    at Function.Module._load (module.js:500:3)
    at Module.require (module.js:568:17)
    at require (internal/module.js:11:18)
</code></pre></div>
<p dir="auto">I'm using babel-plugin-transfrom-runtime at 6.23.0 and babel-runtime at 6.26.0.</p>
<p dir="auto">I am attempting to use transform-runtime in combination with code that uses the export * from 'x' statement. The code that is generated during transpilation includes an import statement for core-js' define-property. I'm using the es2015 preset, so I would expect that a require statement would be generated, not an import.</p>
<p dir="auto">Small sample project at <a href="https://gist.github.com/mdouglass/a6a5c5aae68ac03a92d3">https://gist.github.com/mdouglass/a6a5c5aae68ac03a92d3</a></p>