Skip to content

Commit

Permalink
support js target
Browse files Browse the repository at this point in the history
  • Loading branch information
trdelnk committed May 2, 2024
1 parent 4428875 commit ff28301
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,14 @@ plugins {
}

kotlin {
applyDefaultHierarchyTemplate()
applyDefaultHierarchyTemplate {
common {
group("commonWeb") {
withJs()
withWasm()
}
}
}

jvm {
compilations.all {
Expand All @@ -21,8 +28,11 @@ kotlin {
iosSimulatorArm64()
iosX64()

js(IR) {
browser()
}
@OptIn(ExperimentalWasmDsl::class)
wasmJs {
nodejs()
browser()
}
}

0 comments on commit ff28301

Please sign in to comment.