Now that Node.js supports require()ing ESM modules, it's possible to write ESM-only and support both CJS and ESM bundlers.
https://antfu.me/posts/move-on-to-esm-only
Regardless of whether y'all go that way, it'd be great if the package supported ESM as an import version.
Now that Node.js supports
require()ing ESM modules, it's possible to write ESM-only and support both CJS and ESM bundlers.https://antfu.me/posts/move-on-to-esm-only
Regardless of whether y'all go that way, it'd be great if the package supported ESM as an import version.