Does anyone have experience using DCE with a Kotli...
# javascript
a
Does anyone have experience using DCE with a Kotlin/JS library designed to be called from real JS? As our project gets bigger and bigger, I'm finding it tricky to enforce some amount of consistency with
@JsName
annotations and
runDceKotlinJs.keep
declarations to make sure the intended public API is actually what it's supposed to be. I'm curious if anyone's figured out a good way to keep things in sync... Is it hypothetically possible to preprocess the code to find everything annotated with
@JsName
and automagically add them to the
keep
declarations?