https://kotlinlang.org logo
#webassembly
Title
# webassembly
h

hikamaeng

10/23/2020, 1:35 PM
Hi, Can I convert .klib to .wasm? (in intelliJ as possible)
a

altavir

10/23/2020, 1:48 PM
Wasm target is not ready yet. You can try to use obsolete kotlin-native to wasm compiler, but it is better to wait a bit
h

hikamaeng

10/23/2020, 2:05 PM
thanks. I already used kotlinc-native. My concern is how connect kotlinjs to kotlinwasm in multiplatform.
a

altavir

10/23/2020, 2:06 PM
No way to do it directly. You have to compile modules separately and then use build logic to bind them during deploy.
b

Big Chungus

10/23/2020, 2:07 PM
This might be useful for you as a reference
h

hikamaeng

10/24/2020, 9:22 AM
thank. I'm windows user, but try.
a

altavir

10/24/2020, 9:23 AM
Windows with WSL compiles linux binaries quite well
h

hikamaeng

10/26/2020, 5:58 AM
yes, but kotlinc-native for window is quitly good and handy(I had made gradle execute task ^^)
4 Views