diff options
author | joffrey-bion <joffrey.bion@gmail.com> | 2020-01-05 18:19:08 +0100 |
---|---|---|
committer | joffrey-bion <joffrey.bion@gmail.com> | 2020-01-05 18:19:32 +0100 |
commit | ea9c09a75e4e87438afdea533a76aadcb44c8072 (patch) | |
tree | 5f0233cfd6cf37fa5014f5a75f9b627cfe2e0357 /sw-ui-kt | |
parent | Ugrade Kotlin and Ktlint (diff) | |
download | seven-wonders-ea9c09a75e4e87438afdea533a76aadcb44c8072.tar.gz seven-wonders-ea9c09a75e4e87438afdea533a76aadcb44c8072.tar.bz2 seven-wonders-ea9c09a75e4e87438afdea533a76aadcb44c8072.zip |
Replace all configuration by useCommonJs()
Diffstat (limited to 'sw-ui-kt')
-rw-r--r-- | sw-ui-kt/build.gradle.kts | 15 |
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!!) |