Question: Using the kotlin.js add a lot of extra s...
# javascript
j
Question: Using the kotlin.js add a lot of extra size to a library built with kotlin. Is there any way to remove that dependency or at least make sure it takes as little as possible? Don't think uglifyjs is gonna cut it
I understand that you can make sure everything is written without any kotlin dependency at all, but that kind of defeats using kotlin as a transpiler
s
Take a look at the kotlin-dce-js gradle plugin
j
Any pointers in how to use runDceKotlinJs.keep in a multiplatform setup?
s
No
a
I think it just works as is if attached to a project. I think that it affects tasks, not the source sets
j
@altavir Seems like it cuts the actual source code of the library so thats why i need
runDceKotlinJs.keep
I figure
If anyone has figured out how to add keep definitions to multiplatform please let me know