Is DCE somehow built-in into the compiler in 1.4?
# javascript
r
Is DCE somehow built-in into the compiler in 1.4?
b
yes
wait, no
dce task only appears when you have
produceLibrary()
in your js target config
and it's a hidden task, only visible through
gradle model
🙏 1
s
For projects targeting the browser, DCE is enabled by default since 1.3.70 @Robert Jaros – also see the “Kotlin/JS” section in the release blog post: https://blog.jetbrains.com/kotlin/2020/03/kotlin-1-3-70-released/ 🙂
r
I'm was asking about gradle task, because I have some configuration that depends on this task, and it's not visible with 1.4-M1.