bundle.js
data.csv
index.js
styles.css
index.html
README.md
new fileforkset heightexportdelete
JSX Transpilers by Bundle Size
curran

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.

All code in VizHub is released under the MIT License.