~/talk

When Tree Shaking Fails: Security Risks in Nuxt & Vue

Talkat Vuejs Amsterdam 2026 · 2026-03-12..03-13· [vue, security]
links:none on file
slides:none on file

Tree shaking sometimes keeps unused code and can leak secrets when CommonJS patterns, default-exported objects, or side-effecting APIs prevent static analysis. The talk shows concrete failures (over 45,000 GitHub modules with export-aggregation), demonstrates a low-tech console.log probe to detect bundled secrets, and explains fixes: split files, add /pure or no side effects* annotations, and structural changes. Several PRs to Svelte Mini Pinia and VueUse are already merged and reduce leakage.

AI-written summary · about

  1. 0:00Introduction
  2. 3:54Tree shaking basics
  3. 6:20Pitfalls breaking tree shaking
  4. 11:43Side effects in code
  5. 15:56Security risks when tree shaking fails
  6. 18:50Detecting tree shaking failures
  7. 20:36Fixing tree shaking issues
  8. 22:21Real-world optimizations
  9. 25:12Summary
~/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.