File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
build-logic/src/main/kotlin/kotlinx/io/conventions Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 55
66import org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension
77import org.jetbrains.kotlin.gradle.plugin.KotlinSourceSet
8+ import org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootExtension
89import kotlin.jvm.optionals.getOrNull
910
1011plugins {
@@ -36,6 +37,13 @@ kotlin {
3637 }
3738 }
3839
40+ @OptIn(org.jetbrains.kotlin.gradle.targets.js.dsl.ExperimentalWasmDsl ::class )
41+ wasm {
42+ nodejs()
43+ browser()
44+ binaries.executable()
45+ }
46+
3947 sourceSets {
4048 commonTest {
4149 dependencies {
@@ -160,3 +168,7 @@ fun androidTargets() = listOf(
160168 " androidNativeX64" ,
161169 " androidNativeX86"
162170)
171+
172+ rootProject.the<NodeJsRootExtension >().apply {
173+ nodeVersion = " 20.4.0"
174+ }
You can’t perform that action at this time.
0 commit comments