Post
Unless you want to use a major APM via their instrumentation, in which case ESM might still get in the way because it's harder to instrument libraries in some cases. If you have questions, I'm too noob to know the specific answers, ask @bengl.dev
That said, we're all clamoring for (*checks notes*) slow cold starts bsky.app/profile/beng...
I get the desire for ESM for things like tree shaking (though I'd like to see some numbers on impact here). I get the nicer syntax. But, unbundled ESM takes about 2x as long as CJS to load in my tests (can show if desired). If your users aren't bundling ESM opts them in to big a load-time perf hit.
1 repost3 likes
No replies yet.