Edouard Goossens
03/13/2019, 11:45 AMw: Module "kotlin" is defined in more than one file
warnings. Is there a way to avoid that? Can I make npm aware of the fact that both packages depend on kotlin and it should only be included once? Thanks!Edouard Goossens
03/13/2019, 6:35 PMGarouDan
03/14/2019, 9:29 PMjs {
configure(listOf(compilations["main"], compilations["test"])) {
tasks.getByName(compileKotlinTaskName) {
kotlinOptions {
// languageVersion = "1.3"
metaInfo = true
sourceMap = true
sourceMapEmbedSources = "always"
moduleKind = "umd"
}
}
}
configure(listOf(compilations["main"])) {
tasks.getByName(compileKotlinTaskName) {
kotlinOptions {
outputFile = "${project.buildDir.path}/classes/kotlin/js/main/somePrefix-${project.name}.js"
main = "call"
}
}
}
}
where somePrefix
is not really needed, but if you would like to name your module react, for example, your are going to need this.GarouDan
03/14/2019, 9:29 PM