As supporting both #CommonJS and #ESModules can be wrongly done in a thousand ways, I published why and how we achieved that on fast-check. #JavaScript #opensource
This article is a follow-up of issues reported via #publint from @bluwy and fixed thank to @AndaristRake. As making the package right was not an easy game at first glance, I thought that a how-we-do article could help other #maintainers.
https://fast-check.dev/blog/2023/09/04/dual-packages-or-supporting-both-cjs-and-esm/
#CommonJS #esmodules #javascript #opensource #publint #maintainers