Luca
12/03/2022, 11:03 PMaxlsign
module.
then add a new module called axlsign-wasmjs
or something like that.
axlsign-wasmjs
would just import and wrap axlsign
for all targets by declaring a new expect object AxlSign
in commonMain. And for all targets besides js
it would just delegate to calling the AxlSign
object inside the orginal axlsign
module.
But for js
I would make it’s build depend on the wasm
target from axlsign
.
Then somehow call the wasm binary from the js code?
Does this sound feasible?
Ps. One think that is confusing me is that I don’t see any .wasm
file being generated after I run build after adding a wasm
target. Is that expected? Is a main function required?
this is on kotlin 1.7.21 btw