steamstreet
03/07/2020, 6:21 PMbrowserDevelopmentWebpack
works fine, producing a large file. When I run browserProductionWeback
, the processDceKotlinJs
task reports “NO-SOURCE”, and then browserProductionWebpack
reports SKIPPED
. My configuration is fairly vanilla… here’s the target definition:
kotlin {
target {
browser {
useCommonJs()
dceTask {
keep("ktor-ktor-io.\$\$importsForInline\$\$.<http://ktor-ktor-io.io.ktor.utils.io|ktor-ktor-io.io.ktor.utils.io>")
}
webpackTask {
output.libraryTarget = COMMONJS
}
}
}
}
Any ideas what could be causing this?Sean Keane
03/07/2020, 6:48 PMjs {
browser {
dceTask {
keep("ktor-ktor-io.\$\$importsForInline\$\$.<http://ktor-ktor-io.io.ktor.utils.io|ktor-ktor-io.io.ktor.utils.io>")
keep("multiplatform-lib")
}
webpackTask {
mode = Mode.PRODUCTION
sourceMaps = false
}
}
}
turansky
03/07/2020, 6:50 PMsteamstreet
03/07/2020, 9:02 PMsubprojects {
this.tasks.all {
.. some configuration
}
}
steamstreet
03/07/2020, 9:04 PMthis.tasks.all
block, things work correctly (even if the block doesn’t do anything, the problem persists), so I presume there is something with the loading and configuration of the dce task at that time that causes things to not get the correct source location. This has not been the case with other plugins.turansky
03/07/2020, 9:23 PMturansky
03/07/2020, 9:24 PMdazza5000
03/07/2020, 10:35 PMturansky
03/07/2020, 10:37 PMdazza5000
03/08/2020, 1:20 PMSean Keane
03/08/2020, 3:32 PMturansky
03/08/2020, 5:58 PMkeep
instructiondazza5000
03/09/2020, 3:53 AM