zt
07/05/2024, 11:13 PMapplyDefaultHierarchyTemplate {
common {
group("jsCommon") {
withJs()
withWasmJs()
}
}
}
However in jsCommon
i'm unable to use the kotlin.js.JsModule
annotation, it just isn't accessible
A temporary workaround I'm doing is just public expect annotation class JsModule(val import: String)
then having that typealiased in both source sets
Shouldn't the JsModule be accessible from this common source?ephemient
07/05/2024, 11:36 PMzt
07/05/2024, 11:38 PMEdoardo Luppi
07/06/2024, 8:59 PMjsCommon
is your own custom source set with no knowledge of K/JS or K/WASM.
There is no official support for code sharing between JS and WASM/JS, and I think you'll get the issue immediately backlogged, if one doesn't exist already.zt
07/06/2024, 9:32 PM