compare-versions icon indicating copy to clipboard operation
compare-versions copied to clipboard

add package.json exports field

Open dynst opened this issue 5 months ago • 0 comments

The ESM code is unuseable by Node.js in the non-standard "module" field where only a bundler will see it.

https://nodejs.org/api/packages.html#conditional-exports

And Node.js has 2 separate parsers, so it needs CJS and ESM files to have distinct file extensions like .cjs to pick the correct one when loading a file.

dynst avatar Aug 07 '25 20:08 dynst