File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ Please refer to the original guides for more information.
21
21
Currently, artifacts for the following platforms are supported:
22
22
* JVM
23
23
* JS (both browser and Node.js)
24
+ * WebAssembly (JS and WASI)
24
25
* LinuxX64
25
26
* MingwX64
26
27
* MacosX64
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import io.gitlab.arturbosch.detekt.Detekt
6
6
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
7
7
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
8
8
import org.jetbrains.kotlin.gradle.dsl.KotlinVersion
9
+ import org.jetbrains.kotlin.gradle.targets.js.dsl.ExperimentalWasmDsl
9
10
10
11
plugins {
11
12
kotlin(" multiplatform" )
@@ -51,6 +52,21 @@ kotlin {
51
52
nodejs()
52
53
}
53
54
55
+ @OptIn(ExperimentalWasmDsl ::class )
56
+ wasmJs {
57
+ browser()
58
+ nodejs()
59
+ applyBinaryen()
60
+ }
61
+
62
+ @OptIn(ExperimentalWasmDsl ::class )
63
+ wasmWasi {
64
+ nodejs()
65
+
66
+ // Available since 2.0
67
+ // applyBinaryen()
68
+ }
69
+
54
70
linuxX64()
55
71
mingwX64()
56
72
macosX64()
You can’t perform that action at this time.
0 commit comments