Ayfri
07/06/2023, 6:47 PMsemoro
07/13/2023, 1:23 PManton.bannykh
07/13/2023, 2:02 PMAyfri
07/13/2023, 4:32 PMuseEsClasses = true
it actually doesn't produces ESClassesanton.bannykh
07/14/2023, 1:54 PMArtem Kobzar
07/17/2023, 3:18 PMuseEsClasses
?
I've just try to add the next lines to the hello world application build.gradle.kts
and seems like it works:
tasks.withType<KotlinJsCompile> {
kotlinOptions.useEsClasses = true
kotlinOptions.languageVersion = "2.0"
}
Ayfri
07/17/2023, 6:34 PMkotlin {
js {
sourceSets.all {
languageSettings {
optIn("kotlin.ExperimentalJsExport")
apiVersion = "2.0"
languageVersion = "2.0"
}
}
compilations.all {
kotlinOptions {
metaInfo = true
typedArrays = true
useEsClasses = true
}
}
browser {
commonWebpackConfig(Action {
devServer?.open = false
sourceMaps = true
})
}
useEsModules()
binaries.executable()
}
}
Ayfri
07/17/2023, 7:48 PMbuild
folder and restart JS build