Andrew
11/15/2020, 1:44 AMturansky
11/15/2020, 1:49 AMIR
or legacy
?Andrew
11/15/2020, 2:05 AMturansky
11/15/2020, 2:23 AMIR
if export instance you must mark it with @JsExport
. Exported instances have original names (like in Kotlin)turansky
11/15/2020, 2:25 AMAdding IR generates an almost empty .js file so I’d need to fix that too.
@JsExport
fix this problemturansky
11/15/2020, 2:26 AMAndrew
11/15/2020, 2:27 AMturansky
11/15/2020, 2:31 AMturansky
11/15/2020, 2:32 AMlegacy
original names - default behaviourAndrew
11/15/2020, 2:41 AMAndrew
11/15/2020, 2:41 AMturansky
11/15/2020, 2:55 AMAndrew
11/15/2020, 3:29 AMturansky
11/15/2020, 4:45 AMAndrew
11/15/2020, 5:22 AMSvyatoslav Kuzmich [JB]
11/15/2020, 11:46 AMAndrew
11/15/2020, 5:36 PMSvyatoslav Kuzmich [JB]
11/15/2020, 6:53 PM… would be nice if it was non-mangled names by default then mangle overloads out of necessity.At the first glance it would be nice, but it would make naming unstable, e.g. when you add a function overload (possibly in other module), some function that was previously non-mangled suddenly becomes mangled. In new compilation scheme we hope that JS users of Kotlin library would not be exposed to mangled names because only @JsExport-marked declarations will be visible outside.
… it sounds like you just add that to the class then fix things it complains about, if there are any?Pretty much it. This feature is currently under development, expect some bumps on the road.