~/talk

Introduction to Vue Macros

Talkat Nuxt Nation 2022 · 2022-11-16..11-17· [vue, developer-experience]
slides:none on file

Library that adds compile-time shortcuts to Vue with out-of-the-box support for Vue 2.7 and Vue 3 and installs as an unplugin for Vite/Rollup/Webpack. Concrete features: defineOptions lets filename and options set component name and options without a second script block; defineModel generates v-model prop/event bindings and a Vue2-compatible unifying mode; imported TypeScript types work for props; reactivity transform removes .value. Requires build-plugin config and emits generated types; a macro-creation API is forthcoming.

AI-written summary · about

  1. 0:00Introduction
  2. 1:03What is Vue Macros
  3. 1:45Key features with examples
  4. 4:13Setting up a project with Vue Macros
  5. 5:18Demo: Counter component
  6. 6:46Demo: Reactivity transform
  7. 7:29Demo: Custom component names
  8. 8:13More features
  9. 9:01Q&A: Macros vs runtime
  10. 10:49Q&A: Future macros
  11. 11:57Q&A: Drawbacks
~/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.