~/talk

Navigating the Wild Seas of Native ES Modules

Talkat JSConf.Asia 2019 · 2019-06-14..06-16· [javascript]
slides:none on file

Node v12 aims to make browser and Node ES modules a single system that can just work without bundlers by using explicit extensions and package metadata, e.g. type="module" or .mjs and package.json type=module, plus a browser-side resolution layer via import maps. Modules load via separate HTTP GETs today (hundreds of files is the “black hole problem”), Chrome implements import maps experimentally, and longer-term fixes include HTTP/2 push and web packaging; timeline suggested to be 2020–2021.

AI-written summary · about

  1. 0:00Start
  2. 3:48Webpack? Babel? Bundling? Configuration hell?
  3. 4:51Using ES Modules Today
  4. 6:02New concept: two kinds of codes
  5. 6:47Script
  6. 7:57Execution model (TC39 Defined)
  7. 8:44No! No npm code in the browser yet...
  8. 9:52Node.js already has a module solution
  9. 14:35Solution: type = "module"
  10. 16:56An opportunity to define things for browsers
  11. 18:37The Path to Universal ES Modules
  12. 20:10Let's review...
  13. 22:48Summary
~/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.