compare-versions
compare-versions copied to clipboard
add package.json exports field
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.