This is hacky, but it beats having to write a shell parser from scratch again :)
Once wasm support is shipped with Go, I hope to be able to accomplish the same without a transpiler. I'd also hope that the final package would be smaller and more performant.
I didn't even know they were working on wasm for Go, but it looks like there was some progress during the last months: