🧿🪬🍄🌈🎮💻🚲🥓🎃💀🏴🛻🇺🇸<p>Want to know why <a href="https://mastodon.social/tags/CommonJS" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>CommonJS</span></a> was a mistake?<br>One phrase. Conditional <a href="https://mastodon.social/tags/module" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>module</span></a> <a href="https://mastodon.social/tags/exports" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>exports</span></a>.</p><p>if (condition) {<br> module.exports = foo<br>} else {<br> module.exports = bar<br>}</p><p><a href="https://mastodon.social/tags/javaScript" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>javaScript</span></a> <a href="https://mastodon.social/tags/nodejs" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>nodejs</span></a> <a href="https://mastodon.social/tags/cjs" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>cjs</span></a> <a href="https://mastodon.social/tags/js" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>js</span></a> <a href="https://mastodon.social/tags/webDev" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>webDev</span></a> <a href="https://mastodon.social/tags/esm" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>esm</span></a> <a href="https://mastodon.social/tags/modules" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>modules</span></a></p>