In his blog post, Boris Cherny discusses his return to JavaScript and TypeScript after focusing on Python and Hack. He encountered numerous errors related to importing, typechecking, and loading modules, reflecting the rapid changes in the JavaScript ecosystem. Cherny explores the evolution of modules in JavaScript and TypeScript, from IIFEs and CommonJS to ES Modules. Despite the benefits of ES Modules, their adoption remains low, leading to challenges in interoperability with CommonJS. Cherny proposes simplifying the ecosystem by standardizing the use of .js files and making type=module the default in package.json files. He encourages community discussion on improving module adoption.
https://borischerny.com/javascript,/typescript/2024/06/19/ES-Modules-Are-A-Mess.html