Closed yisibl closed 10 months ago
All of them are perfectly capable of converting ESM to CJS themselves using quite a few tool options. If your project is stuck on CJS, it's not the job of your dependencies to stay stuck with you, you'll have to add the tools to pull modern code back into the past yourself.
Thanks, I've forked and released a separate package containing CJS: https://github.com/yisibl/lib-font/pull/1
the license certain allows for that, but it's kind of a nonsense thing to do given the JS tools available to everyone in late 2023 to fix this problem if your codebase has a CJS/ESM problem.
A lot of historical Node.js projects won't be able to migrate to ESM anytime soon, and I think it would be better to support CommonJS.