Zero Sugar, transform JSSugar to JS0 (Rust)
A transformation tool to tongue-in-cheek compile the gnarly bits of syntax for JS down to simpler JS. Only supports compiling out a few things, like finally
and continue
, convert all loops to simple while
loops, and simplify all variable declarations to simple idents rather than gnarly patterns. This was written in Rust, compiled to WASM, and runs in the browser and NodeJS. I made this project more of a joke in response to the JS0 and JSSugar spec split proposal a few months ago. So this tool puts JS on a diet.