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
Svyatoslav Kuzmich [JB]
12/20/2023, 9:23 PM
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.
Svyatoslav Kuzmich [JB]
12/20/2023, 9:33 PM
Alternatively, if Kotlin/JS library has mostly platform-independent Kotlin code with limited JS-specific parts, then making it multi-platform with both