For Kotlin exports to JS (with `@JsExport`), is th...
# javascript
k
For Kotlin exports to JS (with
@JsExport
), is there any possibility to set the module name, which by default is
packageA.packageB.packageC.packackgeD.theClassName
? For example, the code using a Kotlin npm module right now has to look like the screenshot attached, is there any option to maybe drop the whole long package name?
e
Nope, I think there is a YouTrack issue somewhere for that. If compiling to ESM is possible, that will make your exported declarations top level. Although namespacing is indeed useful sometimes.