Open TimDaub opened 2 months ago
It seems one could add importModuleDynamically: true here:
But even node v22 docs say that:
This option is still part of the experimental modules API. We do not recommend using it in a production environment.
Bummer, I would have loved to use this!
I was made aware that make-asynchronous does't import dynamic imports (https://github.com/sindresorhus/make-asynchronous/blob/7fce502f8c5f7d2a4af20f253e9dbb14c68fa21c/test.js#L68-L74). So I looked into this by testing dynamic imports in web-worker, and I found that they somehow throw an error in "module" mode. Why?
Through some debugging I got to an error involving ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING