~/talk

Node.js: Path to ES6 modules

Talkat Node.js Global Summit 2020 · on Saturday, 2020-05-30· [nodejs, javascript]
links:none on file
slides:none on file

Chronicles the concrete migration from IIFEs and globals through CommonJS, AMD and UMD to native ES modules by walking live examples: a battle.js/main.js game demo runs as an IIFE, then as CommonJS bundled with a browser bundler (demo builds with browserify/“proterra” style CLI), then AMD/UMD, and finally as ES modules that load natively in the browser and in Node (uses .mjs file extension and package.json type: "module"). Shows Node support history (8.5 experimental → rewrite in 12.0 → flag removed by 13.2; runs cleanly on Node 14) and demonstrates CommonJS ↔ ESM interoperability with default and dynamic imports/await.

AI-written summary · about

  1. 0:00Introduction and welcome
  2. 2:02The need for modules
  3. 5:55Namespace pollution and IIFEs
  4. 10:25CommonJS and bundlers
  5. 15:30AMD and UMD specifications
  6. 21:04Introduction to ES modules
  7. 26:04Interoperability and usage
  8. 31:55Conclusion and wrap-up
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.