

570
Feb 1, 2023
Dive into the nuances of migrating from CommonJS to ECMAScript Modules (ESM) as the hosts share their own experiences. Discover the performance boosts ESM offers, such as top-level await and better code organization. They also tackle the complexities of using ESM with TypeScript and modern tools like Vite. Plus, enjoy a lighthearted segment about innovative kitchen solutions, including a unique egg dispenser, alongside nostalgic film discussions. Programming and entertainment make for a tasty mix!
AI Snips
Chapters
Transcript
Episode notes
Wes's ESM Migration
- Wes Bos recently migrated his platform to ESM.
- He used Sentry to monitor for errors during the transition.
Scott's ESM Experience
- Scott Talinsky used import syntax since Meteor.
- He rarely uses CommonJS (CJS) syntax.
Why ESM?
- ESM offers benefits like being a standard, browser compatibility, and top-level await.
- However, the transition can be complex with little immediate payoff.