Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add wasmJs target #23

Open
pablichjenkov opened this issue Apr 4, 2024 · 2 comments
Open

Add wasmJs target #23

pablichjenkov opened this issue Apr 4, 2024 · 2 comments

Comments

@pablichjenkov
Copy link

Is it possible to add wasmJs target to this template?

@adamtang79
Copy link

I'm curious is it even possible?

@adamtang79
Copy link

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
"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants