is there a kmp wasm runtime? <chasm> doesn't resol...
# webassembly
s
is there a kmp wasm runtime? chasm doesn't resolve for commonMain. I'm exploring a way to run arbitrary code in a compose app
that would include the wasmJs target if possible
e
chasm on kotlin/js uses the host's native wasm support; you could ask the maintainer if the same could be done for kotlin/wasm. https://github.com/CharlieTap/chasm/pull/111
or just write that glue yourself
s
isn't this only about the gradle plugin? Because I actually don't need this, only the runtime host for .wasm files
e
no it isn't, it also set up https://github.com/CharlieTap/chasm/blob/main/vm/src/jsMain/kotlin/io/github/charlietap/chasm/vm/JsVirtualMachine.kt which uses the host's WasmModule/WasmInstance/etc.
wasm code will need to go through JS bridges to get to those types but it should work there too
s
oh I see. I just assumed because of the "codegen" title. but good to hear that it should be possible, thanks