bos-web-engine icon indicating copy to clipboard operation
bos-web-engine copied to clipboard

Consider `swc` for transpilation over Babel

Open mpeterdev opened this issue 2 years ago • 1 comments

SWC claims significant performance benefits over Babel and offers a WASM module for use in browsers

https://swc.rs/docs/usage/wasm

mpeterdev avatar Sep 27 '23 15:09 mpeterdev

I briefly experimented with this in case it turned out to be a quick win. I got transpilation with SWC working but was seeing overall worse performance than with babel, so I left it at that

Those changes are on experiment/swc-transpile. Make sure to double check that I set up SWC correctly before building off that

mpeterdev avatar Nov 03 '23 22:11 mpeterdev