I’ve got a Kotlin/Wasm library lib that declares a...
# webassembly
j
I’ve got a Kotlin/Wasm library lib that declares a
@WasmExport
function. When I depend upon lib in a different module main, the export is absent from _main_’s compiled
.wasm
file. Known bug? Working as designed? Can I open a YouTrack for this?
i
Hi, Is it multimodule or not? Seems it is multimodule. Then why
main
should export something from
lib
?
j
I’m doing component model things and the module that has (generated) lowered WebAssembly exports is separate from the module that implements the lifted APIs for those exports
This is the export that I have to copy-paste github.com/wasmcomputercompany/brevity/blob/…/WasmExports.kt
and this separate module generates an API from a .wit github.com/wasmcomputercompany/brevity/blob/…/build.gradle.kts#…
i
But is it multimodule mode or default singlemodule?
j
multiple gradle modules
(I’m building a single
.wasm
file)
i
Yeah. Confirmed. It is an issue.