phteven
12/10/2024, 2:14 AM@JsExport annotations on classes in commonMain and target js & wasmJs ?
I get the error this error: This annotation is not applicable to target 'standalone object'. Applicable targets: function
Currently I have js as a target in my project as I export a npm package for a react app.
In long term I want to switch to compose wasm. Is there any workaround to get this working?Artem Kobzar
12/10/2024, 4:03 PMjs has a richer export model (and it only expands), and in the same time right now it's impossible in wasmJs to export nothing but top-level functions.phteven
12/10/2024, 4:32 PMArtem Kobzar
12/10/2024, 5:28 PMwasmJsArtem Kobzar
12/10/2024, 5:36 PMArtem Kobzar
12/10/2024, 5:36 PMArtem Kobzar
12/10/2024, 5:37 PMandylamax
12/10/2024, 9:21 PMkotlin.js.JsExport should be different from kotlin.wasm.JsExport and they should all be accessible from commonMainphteven
12/10/2024, 11:39 PMRobert Jaros
12/11/2024, 10:05 AM@JsExport in common ?Robert Jaros
12/11/2024, 10:06 AM@JsModule in my project.andylamax
12/11/2024, 10:13 PMexpect/actual but you can tell it is obviously a work around