fflate icon indicating copy to clipboard operation
fflate copied to clipboard

standard ESM exports

Open dynst opened this issue 5 months ago • 0 comments

https://github.com/101arrowz/fflate/blob/f7873560ad229c22c4b23b06c6a3806ffde77569/package.json#L5-L9

"main" is the only field there that Node.js natively understands. For an ESM codebase to import ESM code there needs to be an "exports" field (or I guess dropping cjs entirely for esm in main).

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

dynst avatar Jul 31 '25 18:07 dynst