From CommonJS to ES modules (ESM) in TypeScript

Опубликовано: 29 Ноябрь 2024
на канале: TypeScript TV with Benny
8,809
187

In this video, you will learn how to make the switch from CommonJS to ES Module Syntax.

My FREE programming apps:
https://apps.apple.com/app/id659282498
https://play.google.com/store/apps/de...

My FREE TypeScript Course:
https://typescript.tv/

Timeline:
00:00 History of ES modules
02:09 TypeScript project setup with CommonJS (CJS)
03:02 Migrating from CommonJS to ES modules (ESM)
03:27 Unexpected token export
03:57 require is not defined in ES module scope

Follow TypeScript TV:
🌐 https://typescript.tv
🐦   / typescripttv  
📺    / typescripttv  

#TypeScript #JavaScript #nodejs