Robert Munro
10/29/2022, 5:12 PMQuerying the mapped value of map(map(task ':remote:jsBrowserDevelopmentWebpack' property 'entryProperty')) before task ':remote:processDceDevJsKotlinJs' has completed is not supported
so this is the task
val outputJsLibName = "remote.js"
// include JS artifacts in any JAR we generate
tasks.getByName<Jar>("jvmJar") {
val taskName = if (project.property("isProduction") == "true") {
"jsBrowserProductionWebpack"
} else {
"jsBrowserDevelopmentWebpack"
}
val webpackTask = tasks.getByName<KotlinWebpack>(taskName)
dependsOn(webpackTask) // make sure JS gets compiled first
from(File(webpackTask.destinationDirectory, outputJsLibName))
}
possibly this isn't the right approach though - what is the best approach to reference a kotlin js lib from a server app?