untwisted
12/11/2018, 6:42 PMcompileKotlin2Js.kotlinOptions.moduleKind = "commonjs"
in the project’s build.gradle
, but Gradle is saying that it can’t find compileKotlin2Js
which I suspect is because this is multiplatform. Is there a way to specify this option in a multiplatform build?kotlin {
targets {
fromPreset(presets.jvm, 'jvm')
fromPreset(presets.js, 'js') {
compilations.all {
tasks[compileKotlinTaskName].kotlinOptions {
moduleKind = "commonjs"
}
}
}
}
gildor
12/14/2018, 8:02 AMtasks
is not a property of compilation
this is just a top level propertykotlin{}
dsl blockkotlinOptions
, there is kotlinOptions
inside compilation