-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
49 lines (35 loc) · 958 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
42
43
44
45
46
47
48
49
import org.jetbrains.kotlin.gradle.targets.js.dsl.ExperimentalWasmDsl
plugins {
alias(libs.plugins.kotlinMultiplatform)
}
kotlin {
@OptIn(ExperimentalWasmDsl::class)
wasmJs {
moduleName = "app"
browser {
commonWebpackConfig {
outputFileName = "app.js"
}
}
binaries.executable()
/* Use Binaryen optimization to make it smaller & faster */
applyBinaryen()
}
/* Only to execute tests. */
jvm()
sourceSets {
val wasmJsMain by getting
commonMain.dependencies {
api("com.ashampoo:kim:0.18.2")
}
commonTest.dependencies {
implementation(kotlin("test"))
}
wasmJsMain.dependencies {
implementation(npm("pako", "2.1.0"))
}
jvmTest.dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-io-core:0.3.2")
}
}
}