Go package removes assets required for WASM compilation
I recently attempted to build a Go program for GOOS=js
within Alpine
Linux, and it failed with:
failed to find $GOROOT/misc/wasm/wasm_exec.js driver: stat
/usr/lib/go/misc/wasm/wasm_exec.js: no such file or directory
It appears that the $GOROOT/misc
directory is removed from the go
distribution during packaging in order to save on binary size, but
this breaks WASM compilation. Is this a deliberately removed feature, or an oversight?