Hi guys, I was trying to configure the tasks `comp...
# javascript
g
Hi guys, I was trying to configure the tasks
compileKotlin2Js
and
compileTestKotlin2Js
. But since I’m not using the
id("kotlin2js")
plugin but
kotlin("multiplatform")
I’m receiving an error saying that the tasks don’t exist. Does someone knows how to properly configure these tasks when applying the
kotlin("multiplatform")
plugin?
j
Kotlin Gradle DSL:
Copy code
kotlin {
  js {
    compilations.getByName("main") {
      it.kotlinOptions {
        moduleKind = "commonjs"
        sourceMap = true
        sourceMapEmbedSources = "always"
      }
    }
  }
}