Join Slack
hi I'm sure it's in the pipeline <https://youtrack.jetbrains.com/issue/KT-62385/JsExport-doenst-pla...
# webassembly
a
Ahmed na
07/25/2024, 1:35 AM
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
James Yox
07/25/2024, 6:01 AM
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
Ahmed na
07/27/2024, 11:54 AM
thanks
@James Yox
this works !
29
Views
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by