Export Image

JSX Transpilers by Bundle Size

Curran Kelleher

0 views in last 90 days
Last edited Feb 16, 2019
Created on Feb 15, 2019
Forked from Customizing Axes

In my quest to make VizHub awesome, one of the forefront features is JSX support. Initially, Bublé was added, as this seemed the path of least resistance. Unfortunately, this adds quite a bit of heft to the overall VizHub app bundle. This chart is an exploration of comparative bundle sizes for various means of transpiling JSX into JS, for potential use within VizHub as its "JSX Engine". Bundlephobia.com was used to get bundle size (minified, not GZipped) for each package.

The clear winner looks to be acorn-jsx. Since we're already using Rollup which has a dependency on Acorn, we'd really only be adding its 9.6 kB to our bundle.

MIT Licensed