~/talk

Tomorrow's ES modules today

Talkat BuzzJS 3.1 2018 · 2018-06-14..06-15· [javascript, nodejs]
slides:none on file

A production-ready NPM package called ESM enables ES module syntax in Node 6+ today by installing a loader that is ~200 KB (gzip ~64 KB), zero-dependency, and already sees 125+ releases. It provides a require hook for REPL, Mocha, Ava and webpack, a package-level bridge so one distribution serves both CJS and ESM, mutable namespace and named-export interop, caching plus engine code cache that promises ~20–30% startup gains, isolated loader contexts and multiple instances; it works in Electron.

AI-written summary · about

  1. 0:00Intro
  2. 4:07Ava
  3. 11:18Configuration
  4. 20:05Just works
  5. 25:25Source maps
  6. 27:50ESM loader
  7. 32:52ESM syntax
  8. 34:57Node benchmarks
  9. 37:11ESM for packages
  10. 38:12ES module code
  11. 39:48Multiple instances
  12. 40:31Pipeline
  13. 40:44synchronous pipeline
  14. 41:23interoperability modes
  15. 42:09export bindings
  16. 44:18conclusion
~/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.