Rafael Lins
11/06/2023, 8:58 PMwindow['the.complete.artifactId:project-name']
to get to the root of the actual packages, and then call methods and all that (for example let lib = window['all that stuff']; let example = new <http://lib.my|lib.my>.package.Something()
)
Is there a way to make that base name shorter? So that users can simply let example = <http://myLib.my|myLib.my>.package.Something()
(thereof window['myLib']
)
I'm currently using Kotlin/KMP 1.9.20 but no objections on moving back to 1.8.x ^^
Sorry if my question isn't clear 😅 (also, not linking the project yet since I'm trying to promote it or anything)Christian Sciberras
11/06/2023, 10:52 PMimport
directive is supposed to solve similar situations.Rafael Lins
11/06/2023, 11:30 PMChristian Sciberras
11/07/2023, 11:58 AMimport { symbol_exported_with_long_name as myLib } from 'path/to/module.mjs'
).
I'm not sure if or how much this relates to your problem though.Rafael Lins
11/07/2023, 1:37 PMimport
is available browser-side 😄 never saw it being used before to be honest, so I kinda assumed it just wasn't feasible.
Also, I was really taken by surprise by kind of randomly finding an user of my library! I have no words to describe how happy and humbled I am to know you use it! I'm really hoping you like it, and if not let me know how can I make it better!
Thank you, really ❤️ (I felt like the nintendo 64 kid hahaha)