~/talk

Your Own Vite Plugin? That's as easy as 1 2 3(D)

Talkat Vue.js Nation 2025 · 2025-01-29..01-30· [nodejs, web-performance]
slides:none on file

Creates a Vite plugin that pre-processes GLTF assets at build time by running threejs in Node to generate runtime objects, then emits generated code and type-safe TypeScript objects so property access and missing-node errors surface at compile time. Implements GLTF file preprocessing and codegen via Handlebars, patches a cloned threejs runtime, and wraps everything with unplugin for build-tool agnostic distribution. Faces esbuild watcher and asset-hashing quirks, is published on GitHub, and is used in a working Vue demo.

AI-written summary · about

  1. 0:00Introduction
  2. 1:31glTF files and use cases
  3. 4:20glTF structure and scene graphs
  4. 6:073D rendering with WebGL/Three.js
  5. 7:14Loading glTF in Three.js/TresJS
  6. 8:17Runtime-only glTF loading problems
  7. 9:41Solution: Type generation for glTF
  8. 11:28API design: usability vs bundle size
  9. 13:37Implementation: types and helpers
  10. 15:24Example: island scene types and code
  11. 16:49Solutions to runtime loading issues
  12. 17:52Making plugin bundle-agnostic with unplugin
  13. 18:56Challenges with unplugin and bundlers
  14. 21:08Publishing plugin and open source
  15. 21:51Using plugin in projects
  16. 22:34Demo: browser game with plugin
  17. 23:39Takeaways and frameworks
  18. 24:43Q&A: Vite plugin errors
  19. 25:48Q&A: Testing Vite plugins
  20. 26:31Q&A: Dev vs production modes
~/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.