import org.jetbrains.kotlin.gradle.dsl.JvmTarget plugins { alias(libs.plugins.kotlin.multiplatform) } kotlin { jvm { compilerOptions { jvmTarget.set(JvmTarget.JVM_17) } } wasmJs { binaries.executable() useEsModules() generateTypeScriptDefinitions() browser {} } sourceSets { all { languageSettings.optIn("kotlin.js.ExperimentalJsExport") } commonMain { dependencies { implementation(libs.kotlin.stdlib.common) } } } }