does DCE work with the new 1.3.41 Webpack multipla...
# javascript
c
does DCE work with the new 1.3.41 Webpack multiplatform setup?
👌 1
@Roman Artemev [JB] is there documentation on how to get it set up properly? I’m not seeing any options in their gradle plugins, and just adding the
kotlin-dce-js
plugin doesn’t seem to run correctly. I get the un-bundled and un-minified JS source modules from my code and its dependent libraries in
build/kotlin-js-min/
, and the webpack bundle in
build/libs/
is not minified either (is about 2mb still for a simple “Hello World”). Same results whether I use the
kotlin("js")
or
kotlin("multiplatform")
gradle plugins
r
AFAIK it’s not for now. Could you please run task
runDceKotlinJs
gradle task. Does dce produce anything?
c
assemble without
runDceJsKotlin
assemble with
runDceJsKotlin
So that task is running and doing something, and it is somehow connected to the multiplatform sourcesets, but it doesn’t seem to actually be removing dead code
r
it doesn’t seem to actually be removing dead code
So size of files in kotlin-js-min directory hasn’t changed?
It’s seems like a bug somewhere between DCE and k/js gradle plugins I think
c
Here’s the project I’m working with https://github.com/JavaEden/Orchid/tree/features/kotlin-js-widgets/plugins/OrchidSearch/widget. The JS module is
:plugins:OrchidSearch:widget
🙏 1
r
Let me take a look
c
thank you!
r
As it turned out kotlin/js plugin does not support integration between dce and webpack yet. There is an issue about https://youtrack.jetbrains.com/issue/KT-32323, but I am not sure that work will be done by 1.3.50. I apologise for confusion.
c
Good to know, thanks for checking that for me!