<p dir="auto">Hi, I have one  question<br>
In our react component, we choose to discard using <code class="notranslate">bable-plugin-transform-runtime</code>,<br>
so that we are building a duplicating code lib like <code class="notranslate">function _classCallCheck () ={} ; _classCallCheck()</code> ...<br>
but we have a plan, in our engineering, we are using bable-plugin-transform-runtime to transform <code class="notranslate">function _classCallCheck () ={} ; _classCallCheck()</code> with <code class="notranslate">babel/runtime</code> under <code class="notranslate">node_modules</code> by webpack config,  emm...something like:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
    test: /\.(js|jsx)?$/,
    exclude: /node_modules\/(?!(@music)\/).*/,
        use: [{
             loader: 'babel-loader',
             options: {}
        }]
},"><pre class="notranslate"><span class="pl-kos">{</span>
    <span class="pl-c1">test</span>: <span class="pl-pds"><span class="pl-c1">/</span><span class="pl-cce">\.</span><span class="pl-kos">(</span>js<span class="pl-c1">|</span>jsx<span class="pl-kos">)</span>?<span class="pl-cce">$</span><span class="pl-c1">/</span></span><span class="pl-kos">,</span>
    <span class="pl-c1">exclude</span>: <span class="pl-pds"><span class="pl-c1">/</span>node_modules<span class="pl-cce">\/</span><span class="pl-kos">(?</span><span class="pl-c1">!</span><span class="pl-kos">(</span>@music<span class="pl-kos">)</span><span class="pl-cce">\/</span><span class="pl-kos">)</span>.<span class="pl-c1">*</span><span class="pl-c1">/</span></span><span class="pl-kos">,</span>
        <span class="pl-c1">use</span>: <span class="pl-kos">[</span><span class="pl-kos">{</span>
             <span class="pl-c1">loader</span>: <span class="pl-s">'babel-loader'</span><span class="pl-kos">,</span>
             <span class="pl-c1">options</span>: <span class="pl-kos">{</span><span class="pl-kos">}</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">However, by looking into the packaged code, I found the duplicated codes is still exist, may i know how <code class="notranslate">bable-plugin-transform-runtim</code> works with <code class="notranslate">bable-runtime</code> ?<br>
or our plan is wrong ? many thanks :)</p>
<blockquote>
<p dir="auto">Issue originally made by Axel Rauschmayer (rauschma)</p>
</blockquote>
<h3 dir="auto">Bug information</h3>
<ul dir="auto">
<li><strong>Babel version:</strong> 6</li>
</ul>
<h3 dir="auto">Description</h3>
<p dir="auto">My understanding of these packages is:</p>
<ul dir="auto">
<li>babel-regenerator-runtime: support for transpiling generators to ES5</li>
<li>babel-polyfill: brings the ES6 runtime library to ES5</li>
<li>babel-runtime: the helpers that are normally compiled into the code, collected in a module, to improve code reuse.</li>
</ul>
<p dir="auto">If that is true then I don’t understand the following dependencies:</p>
<ul dir="auto">
<li>babel-polyfill depends on babel-regenerator-runtime and babel-runtime</li>
<li>babel-runtime depends on babel-runtime(!), core-js, babel-regenerator-runtime</li>
</ul>