<p dir="auto">Is it possible to build a subset of babel to just use the <code class="notranslate">transform</code> function for compiling es6/es7/jsx to js in the browser, does it generally have to be this huge? Are there any tricks for using it with webpack?</p>
<p dir="auto"><code class="notranslate">JSXTransformer</code> and <code class="notranslate">react-tools</code> are going away and babel seems to remain the only available option for transpiling JSX in the browser, however it's 10 times bigger than those two which is often quite a problem.</p>
<p dir="auto">Current size <code class="notranslate">browser-polyfill.min.js</code> ~80kb. Possible serious reduce it. Browserify, by default, saves modules path, it's not required.</p>
<p dir="auto">Full shim version of <code class="notranslate">core-js</code> with <code class="notranslate">browserify</code> (w/o <code class="notranslate">bundle-collapser</code>) - 65kb, with <code class="notranslate">webpack</code> - 43kb.</p>
<p dir="auto">Possible use <code class="notranslate">webpack</code> or add <code class="notranslate">bundle-collapser</code>.</p>
<p dir="auto">I think, possible do the same with <code class="notranslate">browser.js</code>.</p>