~/talk

Decoding Webpack: Unraveling Its Architecture

Talkat React Nexus 2023 · 2023-07-07..07-08· [javascript]
slides:none on file

Fast, concrete map of webpack internals: 80% of webpack is plugins and plugins are objects with an apply method that tap into tappable hooks; webpack team maintains the tapable library and an enhanced resolver at github.com/webpack/enhanced-resolve. Shows CLI, Node API used by frameworks like Next.js, and the official analyzer at webpack.github.io/analyze. Walks the pipeline: compiler → compilation → resolver → module factory → parser (AST finds imports) → chunk template → bundle. Explains loaders (TypeScript/Sass → JS) and common hooks for optimize, seal, hashing.

AI-written summary · about

  1. 0:00Start
  2. 2:24How to Use Webpack?
  3. 4:21The Core Concepts: Entry
  4. 4:56The Dependency Graph
  5. 5:40The Core Concepts: Output
  6. 6:19The Core Concepts: Loaders
  7. 8:20The Core Concepts: Plugins
  8. 12:27How to create hooks with Tapable?
  9. 14:01How to tap hooks?
  10. 21:05Tapable Instances: Parser
  11. 22:02Tapable Instances: Template
~/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.