Anyone have any pointers for writing a Gradle Plug...
# javascript
a
Anyone have any pointers for writing a Gradle Plugin that finds methods or fields annotated with
@JsName
and automatically adds them to
runDceKotlinJs.keep
? Keeping DCE Keep and JsName declarations in sync seems to be a consistent annoyance for me, but doesn't seem to be getting much love from Jetbrains... would love to be able to write it myself, but I'm a little lost on figuring it out.
s
You can read annotations using https://github.com/JetBrains/kotlin/tree/master/libraries/kotlinx-metadata. Not sure it can read .meta.js files out of the box.