Import vs Require: The Biggest JavaScript Divide

Опубликовано: 02 Ноябрь 2024
на канале: Matt Pocock
55,760
2.7k

00:00 CJS vs ESM
00:28 History of CJS and ESM
01:30 Compatibility
02:12 The Bundler Lies
02:50 Bun
03:21 Why You Should Use ESM

Upgrade to ESM: https://gist.github.com/sindresorhus/...

Become a TypeScript Wizard with my free beginners TypeScript Course:

https://www.totaltypescript.com/tutor...

Follow Matt on Twitter

  / mattpocockuk  

Join the Discord:

https://mattpocock.com/discord