Hello! Playing with `zipline` and `QuickJS` in it...
# squarelibraries
g
Hello! Playing with
zipline
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:
Copy code
/**
 * 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 🙏
j
Are you using Kotlin to generate your JavaScript?
g
nope. i don't generate JS, i only call JS methods from KMM shared module. It's business lib we share between platforms, and it's required to use methods from there to be aligned with data processing between platforms.
so basically i use from
zipline
only
QuickJS
instance . Since there is no other
QuickJS
only cinterop-ed library for KMM
j
Yep yep. You should be okay with Zipline for that