[Wasm] Port stdlib and kotlin.test build to wasm gradle plugin

This commit is contained in:
Igor Laevsky
2021-10-22 19:54:08 +03:00
parent 5a11446c79
commit cb10bd3a95
4 changed files with 13 additions and 13 deletions
+3 -3
View File
@@ -18,7 +18,7 @@ val commonMainSources by task<Sync> {
}
kotlin {
js(IR) {
wasm {
nodejs()
}
@@ -29,7 +29,7 @@ kotlin {
}
kotlin.srcDir(commonMainSources.get().destinationDir)
}
val jsMain by getting {
val wasmMain by getting {
dependencies {
api(project(":kotlin-stdlib-wasm"))
}
@@ -46,7 +46,7 @@ tasks.withType<KotlinCompile<*>>().configureEach {
)
}
tasks.named("compileKotlinJs") {
tasks.named("compileKotlinWasm") {
(this as KotlinCompile<*>).kotlinOptions.freeCompilerArgs += "-Xir-module-name=kotlin-test"
dependsOn(commonMainSources)
}