~/talk

Looking into the Svelte Compiler

slides:none on file

Svelte parses .svelte files into an AST (it hands JS to Acorn), analyzes variable scope and dependencies, and emits optimized JS and scoped CSS plus source maps. Runtime size drops by avoiding a virtual DOM (React ~40KB gzipped, Vue 2 ~23KB, Vue 3 ~10KB) because the compiler generates per-component code: an instance with instrumented invalidation, a create fragment recipe object (methods c/m/p/d), and SSR as a simple template-returning function. Reactive behavior comes from reactive declarations and injected variables tracked during analysis.

AI-written summary · about

  1. 0:00Start
  2. 4:18Reactive Declarations
  3. 10:40Analyze the Ast
  4. 12:28Traverse the Template Ast
  5. 14:32The Rendering Phase
  6. 14:59Fragment Block
  7. 18:43Server-Side Rendering Targets
  8. 19:57The Spell Compilation Process
  9. 26:10Does Svelte Do any Beybladifying in Outbreak
  10. 26:58Source Mapping
  11. 27:51Svelte Is a Good Platform for Learning Javascript
  12. 31:06Are There Server-Side Rendering Frameworks Specifically for Swelt
  13. 33:17What Is the Bundle Size Difference between Svelte and Other Frameworks and Libraries
~/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.