[K/JS] Fix useEsModules and useCommonJs DSL-functions ^KT-64561 Fixed
This commit is contained in:
+8
-4
@@ -1868,8 +1868,10 @@ class Kotlin2JsIrGradlePluginIT : KGPBaseTest() {
|
||||
buildGradle.appendText(
|
||||
"""
|
||||
|
|
||||
|tasks.withType(KotlinJsCompile).configureEach {
|
||||
| kotlinOptions { moduleKind = "commonjs" }
|
||||
|kotlin {
|
||||
| js {
|
||||
| useCommonJs()
|
||||
| }
|
||||
|}
|
||||
""".trimMargin()
|
||||
)
|
||||
@@ -1891,8 +1893,10 @@ class Kotlin2JsIrGradlePluginIT : KGPBaseTest() {
|
||||
buildGradle.appendText(
|
||||
"""
|
||||
|
|
||||
|tasks.withType(KotlinJsCompile).configureEach {
|
||||
| kotlinOptions { moduleKind = "es" }
|
||||
|kotlin {
|
||||
| js {
|
||||
| useEsModules()
|
||||
| }
|
||||
|}
|
||||
""".trimMargin()
|
||||
)
|
||||
|
||||
+2
-2
@@ -388,7 +388,7 @@ constructor(
|
||||
compilations.all {
|
||||
it.kotlinOptions.configureCommonJsOptions()
|
||||
|
||||
binaries
|
||||
it.binaries
|
||||
.withType(JsIrBinary::class.java)
|
||||
.all {
|
||||
it.linkTask.configure { linkTask ->
|
||||
@@ -402,7 +402,7 @@ constructor(
|
||||
compilations.all {
|
||||
it.kotlinOptions.configureEsModulesOptions()
|
||||
|
||||
binaries
|
||||
it.binaries
|
||||
.withType(JsIrBinary::class.java)
|
||||
.all {
|
||||
it.linkTask.configure { linkTask ->
|
||||
|
||||
Reference in New Issue
Block a user