multiplatform-library-template icon indicating copy to clipboard operation
multiplatform-library-template copied to clipboard

Add wasmJs target

Open pablichjenkov opened this issue 1 year ago • 2 comments

Is it possible to add wasmJs target to this template?

pablichjenkov avatar Apr 04 '24 05:04 pablichjenkov

I'm curious is it even possible?

adamtang79 avatar Sep 17 '24 03:09 adamtang79

Is it possible to add wasmJs target to this template?

disclaimer: I'm a newbie on kotlin multiplatform and compose multiplatform.

library/build.gradle.kts " kotlin { ... // add below 2 lines @OptIn(ExperimentalWasmDsl::class) wasmJs() ... } "

library/src/wasmJsMain/kotlin/fibiprops.wasmJs.kt " actual val firstElement: Int = 4 actual val secondElement: Int = 5 "

adamtang79 avatar Sep 17 '24 04:09 adamtang79