3 ms·
I'm completely clueless w.r.t js modules, but I'm wondering how did Bun manage to do it? Does it work well?
by mardifoufs 2y ago
I'm completely clueless w.r.t js modules, but I'm wondering how did Bun manage to do it? Does it work well?
- vlakreeh 2y agoIt works great for 90% of use cases, but getting that last 10% to work is really really hard so Bun (and node 22 which supports the same thing with an experimental) just throws an error in those cases. The most notable thing is `require`-ing an async ESM module from CJS, because require is a synchronous call you cant just async-ify it trivially.