https://kotlinlang.org logo
a

ankushg

09/25/2018, 2:04 AM
Does the new KMPP plugin support dead code elimination for JS source sets? Haven't been able to find an example that uses it and I don't see any tasks involving DCE when I run
./gradlew tasks
...
l

Liliia

09/25/2018, 7:58 PM
There is a chance that it wouldn’t work with a new model. If so, please report to YT. As a quick workaround you may add a single platform Kotlin/JS module depending on the multiplatform library and then configure DCE there
a

ankushg

09/25/2018, 9:51 PM
There is a chance that it wouldn’t work with a new model. If so, please report to YT.
Happy to report it if it doesn't work, but if it did work, how would I access it? Just put it under the
jsMain
sourceset>
l

Liliia

09/26/2018, 8:37 PM
There are two news here: the bad one that it don’t work there so far; the good one that we’ll try to fix it in upcoming releases and then it should work without additional configurations in JS module as well 🙂
a

ankushg

09/26/2018, 10:46 PM
Nice 🙂 is there a YT ticket I can track?
You may try it now, with Kotlin 1.3-RC2 (
1.3.0-rc-116
)
🎉 1
a

ankushg

09/28/2018, 2:06 PM
thanks!