-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle.kts
41 lines (35 loc) · 919 Bytes
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import org.jetbrains.kotlin.gradle.dsl.KotlinJsCompile
plugins {
kotlin("multiplatform")
}
fun kotlinw(target: String): String =
"org.jetbrains.kotlin-wrappers:kotlin-$target"
kotlin {
js {
browser {
commonWebpackConfig {
outputFileName = "index.js"
}
}
binaries.executable()
}
sourceSets {
val jsMain by getting {
dependencies {
implementation(libs.wrappers.react)
implementation(libs.wrappers.reactDom)
implementation(libs.wrappers.emotion)
implementation(libs.wrappers.tanstack.reactQuery)
implementation(libs.wrappers.tanstack.reactTable)
}
}
}
}
tasks.withType<KotlinJsCompile>().configureEach {
compilerOptions {
target.set("es2015")
}
}
tasks.wrapper {
gradleVersion = "8.10"
}