Migrate to ESM
stephenh opened this issue · comments
Granted it would be a breaking change, but would be great to see a 5.0 release that was ESM based.
As context, I'm the maintainer of ts-proto, which generates TypeScript code for encoding/decoding protobuf messages, and right now with long's module.exports = Long
approach, I have to generate different TS import
statements based on whether users have their project-specific esModuleInterop
tsconfig.json
flag set.
Granted, this is a somewhat selfish, TS-specific ask, but just in general since ESM has "won", it would be great to see long.js move over.
Long.js v5.0.0 has switched to ESM.