PLAY PODCASTS
Titus Wormer Chats About ECMAScript Modules
Season 4 · Episode 8

Titus Wormer Chats About ECMAScript Modules

Learn about what ECMAScript Modules bring to the table!

Chats with Kent C. Dodds · Titus Wormer, Kent C. Dodds

October 4, 202133m 4s

Audio is streamed directly from the publisher (cdn.simplecast.com) as published in their RSS feed. Play Podcasts does not host this file. Rights-holders can request removal through the copyright & takedown page.

Show Notes

It's time to embrace ESM (ECMAScript Module). NodeJS is providing support for ESM out of the box. With ESM modules coming out of the experimental stage we're going to see a lot of packages begin to embrace it.

ESM provides superior organization of your code by allowing you to more easily create smaller, reusable chunks of code. ESM gives you a "module scope" where not only are functions and variables available to each other in the same module but also allows you to explicitly make them available to other modules. There is also the Loader API that is currently in its experimental stages.

In this episode, you'll also learn about more differences between ESM and CommonJS, and some of the challenges and potential problems of using native ESM today.


Homework

Resources

Guest: Titus Wormer

Host: Kent C. Dodds

Topics

jsecmascript modulesdevecmascriptcodeesmtechjavascriptnode