Easily migrate your codebase from CommonJS to ECMAScript Modules Syntax with the TS2ESM tool.
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 - Introduction to Modules
00:53 - Set up Node.js to use ESM
01:07 - Module & Module Resolution in TypeScript
01:43 - Fixing relative import paths
02:18 - The TS2ESM Migration Tool
02:50 - Fixing export declarations
03:26 - Use ESM in test files
04:22 - Test your ESM typings
04:45 - New JavaScript File Extensions
TS2ESM: https://github.com/bennycode/ts2esm
#typescript #nodejs #ecmascript