11 ms·
Appreciate this change. The ESM stuff is nightmarishly esoteric. Most recently I ran into ERR_REQUIRE_ESM while trying to write Playwright E2E tests that import
by dimgl 3y ago
Appreciate this change. The ESM stuff is nightmarishly esoteric. Most recently I ran into ERR_REQUIRE_ESM while trying to write Playwright E2E tests that import from other packages in our monorepo.
I really think the way ESM was handled hurt Node.js a lot. Couple this with the introduction of TypeScript and complexity in the Node.js ecosystem skyrocketed. I've lost so many hours on this.
Thankfully libraries like esbuild exist (and by extension `tsx` which uses esbuild under the hood). https://github.com/privatenumber/tsx https://github.com/privatenumber/tsx
- DanielHB 3y ago> Couple this with the introduction of TypeScript and complexity in the Node.js ecosystem skyrocketed I remember the days of AMD, UMD and so on and so on. The complexity just got reduced during CommonJS days and then came back with a vengeance.