ankushg
07/13/2021, 8:57 PMkeep
everything that is annotated with @JsExport
? Right now we're manually maintaining a list in dceTask { keep(…) }
, and it's kinda annoying to do so manually.
I know it's possible to write some code to generate the keep declarations for us, but figured it was worth asking the broader community first 😄turansky
07/13/2021, 10:11 PMCLOVIS
07/14/2021, 8:11 AMturansky
07/14/2021, 10:40 AMpublic
declarations export filter
1000 public types, but only 200 exported for exampleankushg
07/14/2021, 6:17 PMIf you are making a library, then you should probably let the person using the library do DCE?Our use case is using Kotlin Multiplatform to spit out a JS artifact, and consume that JS artifact from a (kotlin-agnostic) JS project. DCE won't know which methods are used/unused at the time the klib gets transformed into a JS artifact, so we just want to assume that everything we explicitly export is supposed to be kept
ankushg
07/14/2021, 6:35 PMCLOVIS
07/14/2021, 11:57 PMCLOVIS
07/14/2021, 11:57 PMankushg
07/15/2021, 12:07 AMturansky
07/15/2021, 12:34 AM