summaryrefslogtreecommitdiff
path: root/sw-ui-kt/build.gradle.kts
diff options
context:
space:
mode:
authorjoffrey-bion <joffrey.bion@gmail.com>2020-01-05 18:19:08 +0100
committerjoffrey-bion <joffrey.bion@gmail.com>2020-01-05 18:19:32 +0100
commitea9c09a75e4e87438afdea533a76aadcb44c8072 (patch)
tree5f0233cfd6cf37fa5014f5a75f9b627cfe2e0357 /sw-ui-kt/build.gradle.kts
parentUgrade Kotlin and Ktlint (diff)
downloadseven-wonders-ea9c09a75e4e87438afdea533a76aadcb44c8072.tar.gz
seven-wonders-ea9c09a75e4e87438afdea533a76aadcb44c8072.tar.bz2
seven-wonders-ea9c09a75e4e87438afdea533a76aadcb44c8072.zip
Replace all configuration by useCommonJs()
Diffstat (limited to 'sw-ui-kt/build.gradle.kts')
-rw-r--r--sw-ui-kt/build.gradle.kts15
1 files changed, 1 insertions, 14 deletions
diff --git a/sw-ui-kt/build.gradle.kts b/sw-ui-kt/build.gradle.kts
index 1108af44..d5860ddd 100644
--- a/sw-ui-kt/build.gradle.kts
+++ b/sw-ui-kt/build.gradle.kts
@@ -14,6 +14,7 @@ val kotlinWrappersVersion = "pre.85-kotlin-1.3.50"
kotlin {
target {
browser()
+ useCommonJs()
}
sourceSets {
main {
@@ -56,20 +57,6 @@ kotlin {
}
tasks {
- compileKotlinJs {
- kotlinOptions.metaInfo = true
- kotlinOptions.sourceMap = true
- // commonjs module kind is necessary to use top-level declarations from UMD modules (e.g. react-redux)
- // because the Kotlin wrapper didn't specify @JsNonModule
- kotlinOptions.moduleKind = "commonjs"
- kotlinOptions.main = "call"
- }
- compileTestKotlinJs {
- // commonjs module kind is necessary to use top-level declarations from UMD modules (e.g. react-redux)
- // because the Kotlin wrapper didn't specify @JsNonModule
- kotlinOptions.moduleKind = "commonjs"
- }
-
"processResources"(ProcessResources::class) {
val webpack = project.tasks.withType(KotlinWebpack::class).first()
into(webpack.destinationDirectory!!)
bgstack15