By default gradle kotlin-dce-js plugins runs on bo...
# javascript
g
By default gradle kotlin-dce-js plugins runs on both main and test code. Is there a reason to include tests code?
k
No, there's no reason
You can work-around this by disabling corresponding task
g
By default we could have just dce on main code. The build would be faster.
k
Why do you need faster builds?
g
Well, I’m always trying to have fast builds and to do just I need to 😉. If the dev can save few seconds during it’s workflow… why not.
k
Why do you need DCE at dev's environment? You can run it only for building production
g
Yes but sometimes you need to run you prod build . As prod don’t need to have dce on it, I prefer not to have it.
k
DCE takes only few seconds. I don't think it's much for buidling prod. Production builds often take many minutes to build, and may be several hours to pass all tests.
Anyway, simply don't run DCE. What's the problem?
g
It’s okay, I just add
runDceTestKotlinJs.enabled = false
👍 1
k
BTW, here I provided example of setup for dev environment: https://youtrack.jetbrains.com/issue/KT-20210
👍 1
g
It’s more on tuning than changing features
i
@konsoletyper The problem is that DCE is applied both to the main and test sourcesets and for test it doesn't make sense.