Join Slack
Communities
Powered by
in the kotlin examples project, there are three fo...
# compose-web
y
Yogeshvu
03/22/2024, 6:34 PM
in the kotlin examples project, there are three folder(perhaps three targets?): jsMain, jsWasmMain, wasmJsMain . What are these suppose to mean
👀 1
Yogeshvu
03/22/2024, 6:34 PM
image.png
i
Ivan Matkov
03/22/2024, 7:34 PM
It's definitely a bad naming example. jsMain - JS wasmJsMain - WASM and jsWasmMain is a
custom
source set name to share code between them -
https://github.com/Kotlin/kotlin-wasm-examples/blob/main/compose-imageviewer/webApp/build.gradle.kts#L62C13-L62C23
Ivan Matkov
03/22/2024, 7:38 PM
A doc note about "wasmJs" naming -
https://kotlinlang.org/docs/whatsnew1920.html#new-wasm-wasi-target-and-the-renaming-of-the-wasm-target-to-wasm-js
y
Yogeshvu
03/22/2024, 7:57 PM
Is jsMain non wasm target?
i
Ivan Matkov
03/22/2024, 8:38 PM
yes, it's Kotlin/JS -
https://kotlinlang.org/docs/js-project-setup.html
👍 1
y
Yogeshvu
03/22/2024, 9:47 PM
Cool.. i think this needs to be highlighted in the readme. It feels like the examples are only meant for wasm, which definitely isn’t the case..
Yogeshvu
03/22/2024, 9:48 PM
Thanks for the info!
28
Views
Open in Slack
Previous
Next