In case you want to give it a spin, nlvm has had some wasm support for some time now: [https://forum.nim-lang.org/t/3758](https://forum.nim-lang.org/t/3758)
there's a new llvm version in place since that post which should hopefully be an improvement, but do let me know if you have any success or failure with it.
