is there currently a way (or plans to create a way...
# webassembly
d
is there currently a way (or plans to create a way) to enable a
wasmJs
target to consume a Kotlin/JS library? I imagine it could be done in theory with the JS interop support the WASM target has, but I'm hoping more for support at the gradle level i.e.
implementation(project(":my-js-lib")
s
Direct interop with Kotlin/JS is currently out of Kotlin/Wasm scope. As you already mentioned, you can compile Kotlin/JS to JS and use it in Kotlin/Wasm as a regular JS library.
Alternatively, if Kotlin/JS library has mostly platform-independent Kotlin code with limited JS-specific parts, then making it multi-platform with both
js
and
wasmJs
targets could be a better path forward.