ndubien<p>As supporting both <a href="https://fosstodon.org/tags/CommonJS" class="mention hashtag" rel="tag">#<span>CommonJS</span></a> and <a href="https://fosstodon.org/tags/ESModules" class="mention hashtag" rel="tag">#<span>ESModules</span></a> can be wrongly done in a thousand ways, I published why and how we achieved that on fast-check. <a href="https://fosstodon.org/tags/JavaScript" class="mention hashtag" rel="tag">#<span>JavaScript</span></a> <a href="https://fosstodon.org/tags/opensource" class="mention hashtag" rel="tag">#<span>opensource</span></a> </p><p>This article is a follow-up of issues reported via <a href="https://fosstodon.org/tags/publint" class="mention hashtag" rel="tag">#<span>publint</span></a> from <span class="h-card" translate="no"><a href="https://m.webtoo.ls/@bluwy" class="u-url mention">@<span>bluwy</span></a></span> 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 <a href="https://fosstodon.org/tags/maintainers" class="mention hashtag" rel="tag">#<span>maintainers</span></a>.</p><p>Link to the article: <a href="https://fast-check.dev/blog/2023/09/04/dual-packages-or-supporting-both-cjs-and-esm/" target="_blank" rel="nofollow noopener noreferrer" translate="no"><span class="invisible">https://</span><span class="ellipsis">fast-check.dev/blog/2023/09/04</span><span class="invisible">/dual-packages-or-supporting-both-cjs-and-esm/</span></a></p>