<p dir="auto">I'm currently using <strong>babelify</strong> to transform my source code + global shimming <strong>babel-core/browser-polyfill.js</strong> through a vendor file.</p>
<p dir="auto">I noticed redefinitions of _createClass [et al] and the docs mentioned to use <code class="notranslate">{ optional: 'runtime' }</code>, but this has the unfortunate side effect of also including <strong>regenerator/core-js</strong>, extending the dev build time.</p>
<p dir="auto">It would be nice if I can define <code class="notranslate">{ optional: 'runtime.helpers' }</code> and have it include only the helpers.</p>
<p dir="auto">As far as I can tell the <code class="notranslate">runtime</code> transform is all-or-nothing, all I'm interested in is getting rid of the redundant helpers inlined into every module, but it seems I can't have that without also the "risk" of getting dependencies on the other runtimes (notably <code class="notranslate">core-js</code>).</p>
<p dir="auto">Have I missed something or would it not make sense to have a separate transform for just this? They seem to have rather separate concerns from my perspective (avoid redundant helper code vs add dependencies for optional features).</p>