Elektrine lite

← Feed

@zachleat@fediverse.zachleat.com

Post #1748468

2026-04-17 19:23 UTC

@nathanu even on older versions of Node you should be able to import "CommonJS" directly. The only case that requires special care is require("ESM") (and for that you can use Node 22 or newer) Looking at https://www.11ty.dev/docs/cjs-esm/ I’m noting that maybe I didn’t call that out clearly enough!

Replies (1)