Andrey Tabakov
10/09/2023, 2:10 PM//region block: exports
function $jsExportAll$(_) { ... }
$jsExportAll$(_);
kotlin_ai_app_tools.$jsExportAll$(_);
kotlin_ai_app_types.$jsExportAll$(_);
kotlin_ai_app_core.$jsExportAll$(_);
//endregion
return _;
but with 1.9.20-Beta2:
//region block: exports
function $jsExportAll$(_) { ... }
$jsExportAll$(_);
//endregion
return _;
my dependencies in gradle:
sourceSets {
val commonMain by getting {
dependencies {
implementation(kotlin("stdlib"))
implementation(project(":common:tools"))
implementation(project(":common:core"))
implementation(project(":common:types"))
// coroutines
implementation(libs.bundles.kotlinx.coroutines.core)
implementation(libs.bundles.kotlinx.serialization)
}
}
}
and js config:
js(IR) {
browser { testTask { useMocha { this.timeout = "5s" } } }
compilations.all {
kotlinOptions {
sourceMap = true
sourceMapNamesPolicy = null
main = "noCall"
moduleKind = "es"
useEsClasses = true
}
}
generateTypeScriptDefinitions()
binaries.library()
}
What did I miss?Artem Kobzar
10/09/2023, 3:15 PMAndrey Tabakov
10/09/2023, 3:28 PM