How to FFI a non-ECMAScript js?

In other news: I dug yesterday into the problem with bundle-module not playing nicely with FFI, and unless there’s some trick to it it seem to be a fundamental problem, so I may have to reconcile with having to write SPA instead of MPA. I explained above that it’s using ESM format, which conceptually seems exactly correct. But ESM format is very limited in its capabilities, and using 3rd-party libs with it isn’t generally feasible (barring of course ones that were exactly written for that format).