gumil
03/13/2019, 9:35 PMnodeModulesDir
that was set ?gumil
03/13/2019, 10:32 PMGarouDan
03/14/2019, 12:03 PMGarouDan
03/14/2019, 12:04 PMgumil
03/14/2019, 12:06 PMgumil
03/14/2019, 12:07 PMGarouDan
03/14/2019, 12:42 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"
}
}
}
}
If you are importing things from another module, for example a common one, put this in your js target in the common module too.GarouDan
03/14/2019, 12:43 PMGarouDan
03/14/2019, 12:43 PMbuild.gradle.kts
scriptgumil
03/14/2019, 12:45 PM