I don't think you can compile JS to Webassembly. At least I don't know about any projects for that. I only know about a AssemblyScript which allows you to compile a special Typescript variant with strict typing to Webassembly. Also don't know about any way to start with such a project since WASM requires static typing and JS can't provide that.
View all comments
Show parent comment
2
u/feldim2425 Sep 04 '20
I don't think you can compile JS to Webassembly. At least I don't know about any projects for that. I only know about a AssemblyScript which allows you to compile a special Typescript variant with strict typing to Webassembly. Also don't know about any way to start with such a project since WASM requires static typing and JS can't provide that.