~/talk

Compile Like It's 2017

TalkinRussianat JavaScript fwdays'17 · on Saturday, 2017-04-22· [javascript, frontend-architecture]
links:none on file
slides:none on file

Shows concrete build strategies for modern JavaScript: use Babel presets with targets via browserslist and a polyfill importer that injects only needed polyfills, and use a CSS-in-JS compile-time plugin to move work from runtime to build. Demonstrates runtime tooling (an animated algorithm viewer and dynamic assignment tracker) and gives measurements: compiling 1,000 consts ~5–6s, example bundles reduced from ~500KB to ~35KB with helpers ~2KB, and modern Chrome/Safari require few or no transforms.

AI-written summary · about

  1. 0:00Introduction
  2. 2:30Babel's origin
  3. 4:37Babel plugins
  4. 5:41Babel algorithm
  5. 7:30Dynamic code analysis
  6. 8:54Debugging with Babel
  7. 9:38CSS-in-JS optimization
  8. 11:27Babel presets
  9. 13:58Modern browsers
  10. 14:39Babel-preset-env
  11. 16:47compat-table plugin
  12. 17:52engine field in package.json
  13. 19:17Babel and Gulp
  14. 20:23Dev vs prod config
  15. 21:46Babel bundle size
  16. 23:52Babel-preset-env polyfills
  17. 24:57Switch to preset-env
  18. 25:44Q&A
~/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.