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" ) } }