Is there a way to make all my classes generate int...
# javascript
i
Is there a way to make all my classes generate into my executable even when theyre not used?
Copy code
class MyOwnClass : MyJsClass()
wont be in my executable unless i was to instaniate it in some code that was... or i mark it with
@JsExport
a
You have two options: • Mark all of the classes with @JsExport • Use
keep
option from the gradle and list all of the needed classes (https://kotlinlang.org/docs/javascript-dce.html#exclude-declarations-from-dce)
If you want to make the classes members consumable from JS (have pretty names) - only @JsExport option is available, if you don't care about the stability of the class member names - you could use
keep
❤️ 1
i
So i need to use these too?
Copy code
@file:OptIn(ExperimentalJsExport::class)