The Bridge of Death, Part Three
The Bridgekeeper sighs. He’s been at this all day.
“What… is your favourite module system?”
The JavaScript developer freezes. “CommonJS? No — ESM! Wait, it depends. If I’m in Node without "type": "module" in package.json, it’s CommonJS, unless the file ends in .mjs, but if I’m using a bundler it depends on the module field vs the main field, and dual packages need both, and—”
The Gorge claims another.
A Lykn developer approaches.
“What… is your favourite module system?”
“ESM.”
“But what about—”
“ESM.”
“And if you need—”
“ESM.”
The Bridgekeeper, accustomed to module system arguments that last several hours and involve at least one mention of Webpack, waves her through in mild confusion.