~/talk

Demystifying the Dark Art of SFC Compilation

Talkat Connect.Tech 2018 · 2018-10-17..10-19· [vue, frontend-architecture]
slides:none on file

Explains how Vue SFCs parse into a component descriptor, extract the template AST, generate a render function, then transpile to ES2015 with vue-template-compiler and a view-component-compiler pipeline; shows concrete optimizations: static hoisting / automatic caching that prevents needless re-renders, compile-time internationalization that emits language-specific render functions, and style scoping via data-v attributes that prevents style leakage; demos include a compile-time i18n module, a data-test stripper and a toy v-console directive and they all work as described.

AI-written summary · about

  1. 0:00Introduction
  2. 1:20What is SFC?
  3. 2:53Why SFC?
  4. 3:35Templates
  5. 12:57Automatic Caching
  6. 17:09Static Internationalization
  7. 21:04Compilation process
~/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.