~/talk

The journeyman’s guide to modules in Node.js

Talkat Armada JS 2019 · on , 2019-09-00· [nodejs, javascript]
slides:none on file

Explains why Node.js keeps two systems: CommonJS stays synchronous with inline execution and a module cache, while ES Modules use asynchronous fetch with getModuleJob for async load and later synchronous evaluation; Node signals ESM via the .mjs extension and relies on dynamic import for interop with CommonJS. Describes VM internals (isolates, contexts, module map cache) and a concrete improvement—exposing a VM compile API to replace insecure string wrapping—and notes cyclic import interop remains unresolved.

AI-written summary · about

  1. 0:00Introduction and disclaimer
  2. 1:03Speaker introduction
  3. 2:31Why discuss Node.js modules
  4. 5:01History of JavaScript modules
  5. 10:44Birth of CommonJS in Node.js
  6. 15:23AMD and bundlers era
  7. 19:34Universal Module Definition attempt
  8. 20:36ES Modules introduction
  9. 23:05How module systems work in Node.js
  10. 33:28CommonJS loader deep dive
  11. 36:20ES Modules vs CommonJS comparison
  12. 38:48Interoperability challenges
  13. 40:35Closing remarks and thanks
  14. 41:17Q&A: Future of Node.js modules
~/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.