Compile Like It's 2017
summary
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
chapters (18)
- 0:00Introduction
- 2:30Babel's origin
- 4:37Babel plugins
- 5:41Babel algorithm
- 7:30Dynamic code analysis
- 8:54Debugging with Babel
- 9:38CSS-in-JS optimization
- 11:27Babel presets
- 13:58Modern browsers
- 14:39Babel-preset-env
- 16:47compat-table plugin
- 17:52engine field in package.json
- 19:17Babel and Gulp
- 20:23Dev vs prod config
- 21:46Babel bundle size
- 23:52Babel-preset-env polyfills
- 24:57Switch to preset-env
- 25:44Q&A
related talks
34mBuild-time Optimizations in JavaScript Applications
22mBuilding JavaScript for JavaScripters
11mJavascript Tooling - The Evolution and Future of JS & Front-end Build Tools
32mBuilding a High Performance JavaScript Compiler
58m10KB or Bust: The Delicate Power of Webpack and Babel
23mParty like it's 1999, write JavaScript like it's 2012
35mAshley Williams - SeattleJS Conference 2017
15mCompilers in styling web UI
