Skip to content

Commit

Permalink
Add JS target to compose module
Browse files Browse the repository at this point in the history
  • Loading branch information
twyatt committed Sep 10, 2024
1 parent 9d5dc0d commit a57a95c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions compose/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ kotlin {
iosArm64()
iosSimulatorArm64()
iosX64()
js().browser()
jvm("desktop")

sourceSets {
Expand Down Expand Up @@ -46,6 +47,10 @@ kotlin {
val iosMain by getting {
dependsOn(skiaMain)
}

val jsMain by getting {
dependsOn(skiaMain)
}
}
}

Expand Down
2 changes: 2 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
org.gradle.jvmargs=-Xmx2048m

org.jetbrains.compose.experimental.jscanvas.enabled=true

# Android Configuration
android.useAndroidX=true

Expand Down

0 comments on commit a57a95c

Please sign in to comment.