We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a7d4b7 commit 59a3dc6Copy full SHA for 59a3dc6
runtime/build.gradle.kts
@@ -1,5 +1,6 @@
1
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
2
import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl
3
+import org.jetbrains.kotlin.gradle.plugin.KotlinPlatformType
4
import org.jetbrains.kotlin.gradle.tasks.KotlinNativeCompile
5
import java.util.*
6
@@ -71,6 +72,11 @@ kotlin {
71
72
)
73
}
74
75
+ if (target.platformType == KotlinPlatformType.wasm) {
76
+ compileTaskProvider.configure {
77
+ compilerOptions.optIn.add("kotlin.js.ExperimentalWasmJsInterop")
78
+ }
79
80
81
82
0 commit comments