~/talk

Streamline your code with webpack

Talkat JSDay 2019 · 2019-05-08..05-09· [javascript, web-performance]
slides:none on file

Explains how webpack turns imports into a dependency graph, demonstrates a small “Beyonce” app that produces a 684-line stats.json for four modules, shows tree shaking removes unused exports, splitChunks pulls duplicated code into a shared bundle, and uses dynamic imports to create on-demand bundles. Describes using multiple config files to emit modern and IE11 bundles, recounts a painful migration from webpack 3 to 4 and a plugin downgrade workaround.

AI-written summary · about

  1. 0:00Start
  2. 6:02Say we wanted to build an application
  3. 6:40Dependency graph
  4. 9:45Supports multiple configurations
  5. 10:57Tree shaking
  6. 12:28Code splitting
  7. 15:11Dynamic imports
  8. 17:47High barrier to entry
  9. 18:14Breaking version updates
  10. 19:06Finding issues
  11. 19:33Weird work-arounds
  12. 20:15Do the benefits outweigh the negatives?
  13. 20:38Webpack Book
  14. 21:45Alternatives
~/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.