https://kotlinlang.org logo
#compose-web
Title
# 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
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
y

Yogeshvu

03/22/2024, 7:57 PM
Is jsMain non wasm target?
i

Ivan Matkov

03/22/2024, 8:38 PM
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..
Thanks for the info!
9 Views