Small JSX compiler
This repo is my attempt at creating a reasonably small JSX compiler.
The upstream version of babel-standalone's "minified" build clocks in at
curl https://unpkg.com/@firstname.lastname@example.org/babel.min.js | wc -c # 1965073 bytes
nearly 2MB, and also does some DOM walking to process
(For use in the Sketch.systems playground; see forum thread for context.)
So, I removed all the babel plugins except
@babel/plugin-transform-react-jsx and got rid of the DOM walking bits.
compile.sh to build
Best I've gotten it down to is 969kB.
Please open an issue or pull request if this can be improved. (Or point me to another project that already does this!)