Enable some experimental features of kotlin

This commit is contained in:
Username404-59 2021-06-20 15:30:13 +02:00 committed by Username404
parent e0bdb8513e
commit a312c81456
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 7 additions and 2 deletions

View File

@ -18,11 +18,16 @@ kotlin {
js(IR) { js(IR) {
moduleName = "Username404_Website" moduleName = "Username404_Website"
compilations.all { compilations.all {
with(languageSettings) {
println(coreLibrariesVersion)
apiVersion = coreLibrariesVersion.substring(0..2)
languageVersion = (apiVersion!!.toDouble() + 0.1).toString()
progressiveMode = true
}
with(kotlinOptions) { with(kotlinOptions) {
freeCompilerArgs = freeCompilerArgs + listOf( freeCompilerArgs = freeCompilerArgs + listOf(
"-Xopt-in=kotlin.RequiresOptIn", "-Xopt-in=kotlin.RequiresOptIn",
"-Xopt-in=kotlin.js.ExperimentalJsExport", "-Xopt-in=kotlin.js.ExperimentalJsExport"
"-progressive"
) )
} }
} }