Thread
#multiplatform
    ankushg

    ankushg

    4 years ago
    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
    ...
    Liliia

    Liliia

    4 years ago
    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
    ankushg

    ankushg

    4 years ago
    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>
    Liliia

    Liliia

    4 years ago
    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 🙂
    ankushg

    ankushg

    4 years ago
    Nice 🙂 is there a YT ticket I can track?
    Liliia

    Liliia

    4 years ago
    You may try it now, with Kotlin 1.3-RC2 (
    1.3.0-rc-116
    )
    ankushg

    ankushg

    4 years ago
    thanks!