Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

Commit

Permalink
gradle: disable wasm for all artifacts cuz weird compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
nxoim committed Feb 6, 2024
1 parent ac6028c commit 8f5b3ec
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 33 deletions.
16 changes: 7 additions & 9 deletions core/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import org.jetbrains.kotlin.gradle.targets.js.dsl.ExperimentalWasmDsl

plugins {
alias(libs.plugins.multiplatform)
alias(libs.plugins.compose)
Expand All @@ -16,14 +14,14 @@ kotlin {

jvm("desktop")

js(IR) {
browser()
}
// js(IR) {
// browser()
// }

@OptIn(ExperimentalWasmDsl::class)
wasmJs {
browser()
}
// @OptIn(ExperimentalWasmDsl::class)
// wasmJs {
// browser()
// }

macosX64()
macosArm64()
Expand Down
16 changes: 7 additions & 9 deletions optionalExtensions/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import org.jetbrains.kotlin.gradle.targets.js.dsl.ExperimentalWasmDsl

plugins {
alias(libs.plugins.multiplatform)
alias(libs.plugins.compose)
Expand All @@ -16,14 +14,14 @@ kotlin {

jvm("desktop")

js(IR) {
browser()
}
// js(IR) {
// browser()
// }

@OptIn(ExperimentalWasmDsl::class)
wasmJs {
browser()
}
// @OptIn(ExperimentalWasmDsl::class)
// wasmJs {
// browser()
// }

macosX64()
macosArm64()
Expand Down
29 changes: 14 additions & 15 deletions sample/app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
import org.jetbrains.kotlin.gradle.targets.js.dsl.ExperimentalWasmDsl

plugins {
alias(libs.plugins.multiplatform)
Expand All @@ -18,17 +17,17 @@ kotlin {
}

jvm()

@OptIn(ExperimentalWasmDsl::class)
wasmJs {
moduleName = "app"
browser {
commonWebpackConfig {
outputFileName = "composeApp.js"
}
}
binaries.executable()
}
//
// @OptIn(ExperimentalWasmDsl::class)
// wasmJs {
// moduleName = "app"
// browser {
// commonWebpackConfig {
// outputFileName = "composeApp.js"
// }
// }
// binaries.executable()
// }

// iosX64()
// iosArm64()
Expand Down Expand Up @@ -144,7 +143,7 @@ compose.desktop {
}
}

compose.experimental {
web.application {}
}
//compose.experimental {
// web.application {}
//}

0 comments on commit 8f5b3ec

Please sign in to comment.