From a312c8145609c6308d3c3027ff62bc5d699988c5 Mon Sep 17 00:00:00 2001 From: Username404-59 Date: Sun, 20 Jun 2021 15:30:13 +0200 Subject: [PATCH] Enable some experimental features of kotlin --- build.gradle.kts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index e533f7a..d8a61ce 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -18,11 +18,16 @@ kotlin { js(IR) { moduleName = "Username404_Website" compilations.all { + with(languageSettings) { + println(coreLibrariesVersion) + apiVersion = coreLibrariesVersion.substring(0..2) + languageVersion = (apiVersion!!.toDouble() + 0.1).toString() + progressiveMode = true + } with(kotlinOptions) { freeCompilerArgs = freeCompilerArgs + listOf( "-Xopt-in=kotlin.RequiresOptIn", - "-Xopt-in=kotlin.js.ExperimentalJsExport", - "-progressive" + "-Xopt-in=kotlin.js.ExperimentalJsExport" ) } }