Modules
Understand ES modules vs CommonJS and how bundlers use them.
- JS.10.01ES modulesCoreJunior10 min
- JS.10.02CommonJS vs ESM and interopCoreMid-level11 min
- JS.10.03Dynamic import, top-level await and code splittingCoreMid-level10 min
- JS.10.04Circular dependencies and tree shakingSeniorBeing written
Interview questions in this module
- What is the difference between CommonJS and ES modules?
- What is a live binding?
- How does tree shaking work and what breaks it?
- What happens with circular imports in ESM vs CommonJS?
- What does dynamic
import()give you?