altavir
01/27/2025, 1:07 PMRobert Jaros
01/27/2025, 1:15 PM@JsModule
annotation https://kotlinlang.org/docs/js-modules.html#jsmodule-annotationRobert Jaros
01/27/2025, 1:16 PMrequire
was never in stdlibaltavir
01/27/2025, 1:17 PMRobert Jaros
01/27/2025, 1:17 PM@JsModule
Robert Jaros
01/27/2025, 1:21 PMuseEsModules()
in your build configuration and use simple @JsModule
for every kind of imports (without @JsNonModule
)altavir
01/27/2025, 1:22 PMRobert Jaros
01/27/2025, 1:23 PM@JsModule("css/style.css")
external val styleCss: dynamic
turansky
01/27/2025, 1:32 PMaltavir
01/27/2025, 1:34 PMturansky
01/27/2025, 1:39 PMinline
sometimes isn't really inline.
And path
can be declared as temp variable - Webpack won't be happy 😞
Temp pill - use importAsync
+ await()
turansky
01/27/2025, 1:40 PMturansky
01/27/2025, 1:42 PM