Skip to content

Commit

Permalink
Merge pull request #134 from InsertKoinIO/wasm_integration
Browse files Browse the repository at this point in the history
Add Wasm integration
  • Loading branch information
arnaudgiuliani authored Jun 27, 2024
2 parents 6399ada + 5f34212 commit e7d2179
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions projects/koin-annotations/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootExtension
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
Expand All @@ -15,6 +16,11 @@ kotlin {
binaries.executable()
}

wasmJs {
binaries.executable()
nodejs()
}

iosX64()
iosArm64()
iosSimulatorArm64()
Expand All @@ -39,4 +45,13 @@ kotlin {
}
}

rootProject.the<NodeJsRootExtension>().apply {
nodeVersion = "21.0.0-v8-canary202309143a48826a08"
nodeDownloadBaseUrl = "https://nodejs.org/download/v8-canary"
}

tasks.withType<org.jetbrains.kotlin.gradle.targets.js.npm.tasks.KotlinNpmInstallTask>().configureEach {
args.add("--ignore-engines")
}

apply(from = file("../gradle/publish.gradle.kts"))

0 comments on commit e7d2179

Please sign in to comment.