moko-resources icon indicating copy to clipboard operation
moko-resources copied to clipboard

Add wasmJs target [WIP]

Open luca992 opened this issue 1 year ago • 0 comments
trafficstars

This isn't quite working yet, but started adding support for wasmJs. It will build, but generated code for wasmJs doesn't work because wasmJs only supports calling js code in top level functions:

Calls to 'js(code)' should be a single expression inside a top-level function body or a property initializer in Kotlin/Wasm.

Also, requires an updated moko-graphics with wasmJs added

It could also probably be cleaned up to share more code with the js target.

luca992 avatar May 27 '24 02:05 luca992