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?untwisted
12/11/2018, 7:00 PMkotlin {
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 propertygildor
12/14/2018, 8:02 AMkotlin{}
dsl blockgildor
12/14/2018, 8:07 AMkotlinOptions
, there is kotlinOptions
inside compilation