hi I'm sure it's in the pipeline <https://youtrac...
# webassembly
a
hi I'm sure it's in the pipeline https://youtrack.jetbrains.com/issue/KT-62385/JsExport-doenst-play-well-with-the-WasmTarget Would really like to start building with wasm , at least our internal dashboard , so much time will be saved !! Also any workaround to enable both js and wasmJs and use the export annotation ? (like turn off the complier error)
j
There is an effective workaround that I've used successfully. It's detailed here: https://kotlinlang.slack.com/archives/CDFP59223/p1682147287374119 Basically you create a new annotation that you typealias to
@JsExport
on the js source set and make it a stub on other source sets (including wasmJs). Specifically this comment has a relevant code sample: https://kotlinlang.slack.com/archives/CDFP59223/p1682173934807269?thread_ts=1682147287.374119&cid=CDFP59223
👀 1
a
thanks @James Yox this works !