George Karpenko
02/20/2025, 8:10 AMzipline
and QuickJS
in it. Main purpose - is to use shared between FE&BE .js library.
I have i possibility to wrap
or pack
the .js library on my own.
Question: Is there defined any prefered/optimal format
of consuming .js library for yours QuickJS
? i mean formats like: cjs
, amd
, umd
, esm
? Because logically it must be as easy as possible, so then cjs
f.ex. But during the initialization of Zipline
- i see that script is applied:
/**
* Implements an AMD module loader for Kotlin/JS AMD modules running on QuickJS.
* <https://github.com/amdjs/amdjs-api/blob/master/AMD.md>
*/
internal const val DEFINE_JS = ...
Can someone make it more clear for me ? 😄 thanks 🙏jessewilson
02/21/2025, 6:21 PMGeorge Karpenko
02/21/2025, 11:59 PMGeorge Karpenko
02/22/2025, 12:00 AMzipline
only QuickJS
instance . Since there is no other QuickJS
only cinterop-ed library for KMMjessewilson
02/22/2025, 1:05 AM