~/talk

Demystifying: The Dark Art of SFC Compilation

Talkat VueConf US 2019 · on Tuesday, 2019-03-26· [vue, web-performance]
slides:none on file

Explains how Single File Components become JavaScript: parser yields blocks, template compiles to a render function, styles become injected DOM nodes, then everything is combined. Shows concrete transforms that remove data-test attributes using a postTransformNode, and a working compile-time i18n implemented via a custom block and repassing tokens. Demonstrates editing vue.config.js to register the transform with a Vue CLI hook, and notes Vue 3 adds source maps and tree-shakable compiler output.

AI-written summary · about

  1. 0:00SFC Compilation
  2. 0:43Compilation Process
  3. 1:25Testable Components
  4. 2:25What is an SFC?
  5. 3:29Browsers don't understand SFC
  6. 12:07Testable Components
  7. 15:32Handwriting Render Function
  8. 16:24Summary
~/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.