Skip to content

Commit

Permalink
修复entry的wasmJs无法编译的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
ssttkkl committed Oct 3, 2024
1 parent cdec805 commit f849db5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 277 deletions.
19 changes: 4 additions & 15 deletions mahjong-utils-entry/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,6 @@ kotlin {
)
}
}
wasmWasi {
nodejs {
binaries.library()
}
}
}

if (enableNative) {
Expand Down Expand Up @@ -98,23 +93,17 @@ kotlin {
}
}
if (enableWasm) {
val wasmMain by creating {
dependsOn(commonMain)
}
val wasmTest by creating {
dependsOn(commonTest)
}
val wasmJsMain by getting {
dependsOn(wasmMain)
dependsOn(nonJsMain)
}
val wasmJsTest by getting {
dependsOn(wasmTest)
dependsOn(nonJsTest)
}
val wasmWasiMain by getting {
dependsOn(wasmMain)
dependsOn(nonJsMain)
}
val wasmWasiTest by getting {
dependsOn(wasmTest)
dependsOn(nonJsTest)
}
}
}
Expand Down
1 change: 0 additions & 1 deletion mahjong-utils-entry/src/nonJsMain/kotlin/Main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import kotlin.js.JsExport

internal val ENTRY = buildEntry(JsonParamsDecoder, JsonResultEncoder)


@JsExport
fun call(name: String, rawParams: String): String {
return ENTRY.call(name, rawParams)
Expand Down
19 changes: 0 additions & 19 deletions mahjong-utils-entry/src/wasmMain/kotlin/Main.kt

This file was deleted.

242 changes: 0 additions & 242 deletions mahjong-utils-entry/src/wasmTest/kotlin/TestEntry.kt

This file was deleted.

0 comments on commit f849db5

Please sign in to comment.