Browse Source

repr with newly published

repr_cfw_esModules
Oleksandr Karpovich 1 year ago
parent
commit
03af2b07bc
  1. 21
      examples/html/landing/build.gradle.kts
  2. 7
      examples/html/landing/gradle.properties
  3. 2
      examples/html/landing/settings.gradle.kts

21
examples/html/landing/build.gradle.kts

@ -10,6 +10,8 @@ repositories {
mavenCentral()
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
google()
maven("https://maven.pkg.jetbrains.space/kotlin/p/wasm/experimental")
// mavenLocal()
}
val useEs = project.properties["test.useEsModules"] == "true"
@ -36,14 +38,19 @@ kotlin {
tasks.withType<KotlinJsCompile>().configureEach {
kotlinOptions {
useEsClasses = useEs
useEsClasses = true
}
}
// a temporary workaround for a bug in jsRun invocation - see https://youtrack.jetbrains.com/issue/KT-48273
afterEvaluate {
rootProject.extensions.configure<NodeJsRootExtension> {
versions.webpackDevServer.version = "4.0.0"
versions.webpackCli.version = "4.10.0"
}
}
//afterEvaluate {
// rootProject.extensions.configure<NodeJsRootExtension> {
// versions.webpackDevServer.version = "4.0.0"
// versions.webpackCli.version = "4.10.0"
// }
//}
compose {
// kotlinCompilerPlugin.set(dependencies.compiler.forKotlin("1.7.20"))
kotlinCompilerPluginArgs.add("suppressKotlinVersionCompatibilityCheck=true")
}

7
examples/html/landing/gradle.properties

@ -1,7 +1,8 @@
kotlin.code.style=official
kotlin.version=1.9.20-Beta2
compose.version=1.5.10-beta02
kotlin.version=1.9.20-RC
compose.version=23.10.16.1
#kotlin.experimental.tryK2=true
test.useEsModules=true
test.useEsModules=true
kotlin.incremental.js.ir=true

2
examples/html/landing/settings.gradle.kts

@ -3,6 +3,8 @@ pluginManagement {
gradlePluginPortal()
mavenCentral()
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
maven("https://maven.pkg.jetbrains.space/kotlin/p/wasm/experimental")
// mavenLocal()
}
plugins {

Loading…
Cancel
Save