Enable some experimental features of kotlin
This commit is contained in:
parent
e0bdb8513e
commit
a312c81456
|
@ -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"
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue