---
title: "SerKo Vincent Ngai - When Tree Shaking Fails: Security Risks in Nuxt &amp; Vue | VueDigest"
description: "The article discusses the security risks associated with tree shaking in the Vue and Nuxt frameworks, highlighting potential vulnerabilities that can arise when this optimization technique fails. It emphasizes the importance of understanding these risks to maintain secure applications."
canonical_url: "https://vuedigest.com/news/serko-vincent-ngai---when-tree-shaking-fails-security-risks-in-nuxt-amp-vue"
last_updated: "2026-05-01T12:00:16.190Z"
meta:
  "og:description": "The article discusses the security risks associated with tree shaking in the Vue and Nuxt frameworks, highlighting potential vulnerabilities that can arise when this optimization technique fails. It emphasizes the importance of understanding these risks to maintain secure applications."
  "og:image": "https://vuedigest.com/_og/d/c_Template.takumi%2Cdescription_~VGhlIGFydGljbGUgZGlzY3Vzc2VzIHRoZSBzZWN1cml0eSByaXNrcyBhc3NvY2lhdGVkIHdpdGggdHJlZSBzaGFraW5nIGluIHRoZSBWdWUgYW5kIE51eHQgZnJhbWV3b3JrcywgaGlnaGxpZ2h0aW5nIHBvdGVudGlhbCB2dWxuZXJhYmlsaXRpZXMgdGhhdCBjYW4gYXJpc2Ugd2hlbiB0aGlzIG9wdGltaXphdGlvbiB0ZWNobmlxdWUgZmFpbHMuIEl0IGVtcGhhc2l6ZXMgdGhlIGltcG9ydGFuY2Ugb2YgdW5kZXJzdGFuZGluZyB0aGVzZSByaXNrcyB0byBtYWludGFpbiBzZWN1cmUgYXBwbGljYXRpb25zLg%2Ctitle_~U2VyS28gVmluY2VudCBOZ2FpIC0gV2hlbiBUcmVlIFNoYWtpbmcgRmFpbHM6IFNlY3VyaXR5IFJpc2tzIGluIE51eHQgJmFtcDsgVnVl%2Cp_Ii9uZXdzL3NlcmtvLXZpbmNlbnQtbmdhaS0tLXdoZW4tdHJlZS1zaGFraW5nLWZhaWxzLXNlY3VyaXR5LXJpc2tzLWluLW51eHQtYW1wLXZ1ZSI%2Cs_IyKGX9s0BsOeZ1I2.png"
  "og:image:height": "600"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "SerKo Vincent Ngai - When Tree Shaking Fails: Security Risks in Nuxt & Vue"
  "twitter:description": "The article discusses the security risks associated with tree shaking in the Vue and Nuxt frameworks, highlighting potential vulnerabilities that can arise when this optimization technique fails. It emphasizes the importance of understanding these risks to maintain secure applications."
  "twitter:image": "https://vuedigest.com/_og/d/c_Template.takumi%2Cdescription_~VGhlIGFydGljbGUgZGlzY3Vzc2VzIHRoZSBzZWN1cml0eSByaXNrcyBhc3NvY2lhdGVkIHdpdGggdHJlZSBzaGFraW5nIGluIHRoZSBWdWUgYW5kIE51eHQgZnJhbWV3b3JrcywgaGlnaGxpZ2h0aW5nIHBvdGVudGlhbCB2dWxuZXJhYmlsaXRpZXMgdGhhdCBjYW4gYXJpc2Ugd2hlbiB0aGlzIG9wdGltaXphdGlvbiB0ZWNobmlxdWUgZmFpbHMuIEl0IGVtcGhhc2l6ZXMgdGhlIGltcG9ydGFuY2Ugb2YgdW5kZXJzdGFuZGluZyB0aGVzZSByaXNrcyB0byBtYWludGFpbiBzZWN1cmUgYXBwbGljYXRpb25zLg%2Ctitle_~U2VyS28gVmluY2VudCBOZ2FpIC0gV2hlbiBUcmVlIFNoYWtpbmcgRmFpbHM6IFNlY3VyaXR5IFJpc2tzIGluIE51eHQgJmFtcDsgVnVl%2Cp_Ii9uZXdzL3NlcmtvLXZpbmNlbnQtbmdhaS0tLXdoZW4tdHJlZS1zaGFraW5nLWZhaWxzLXNlY3VyaXR5LXJpc2tzLWluLW51eHQtYW1wLXZ1ZSI%2Cs_IyKGX9s0BsOeZ1I2.png"
  "twitter:title": "SerKo Vincent Ngai - When Tree Shaking Fails: Security Risks in Nuxt & Vue"
---

> Index of every page on this site: [llms.txt](https://vuedigest.com/llms.txt)

Vuejs Amsterdam [ View all from this source](https://vuedigest.com/sources/vuejs-amsterdam) May 01, 2026 40

# **SerKo Vincent Ngai - When Tree Shaking Fails: Security Risks in Nuxt \&amp; Vue**

[Watch Video](https://www.youtube.com/watch?v=YXG514QueOc)

Share [Share on X](https://x.com/intent/tweet?text=SerKo+Vincent+Ngai+-+When+Tree+Shaking+Fails%3A+Security+Risks+in+Nuxt+%26amp%3B+Vue&url=https%3A%2F%2Fvuedigest.com%2Fnews%2Fserko-vincent-ngai---when-tree-shaking-fails-security-risks-in-nuxt-amp-vue)

**Topics **

[vue](https://vuedigest.com/topics/vue) [performance](https://vuedigest.com/topics/performance) [nuxt](https://vuedigest.com/topics/nuxt) [security](https://vuedigest.com/topics/security) [ All topics →](https://vuedigest.com/topics)

![SerKo Vincent Ngai - When Tree Shaking Fails: Security Risks in Nuxt \&amp; Vue](https://i.ytimg.com/vi/YXG514QueOc/hqdefault.jpg)

**Key takeaways**

The article discusses the security risks associated with tree shaking in the Vue and Nuxt frameworks, highlighting potential vulnerabilities that can arise when this optimization technique fails. It emphasizes the importance of understanding these risks to maintain secure applications.

## **Related Articles **

![What is props reactivity loss in Vue and how to avoid it?](https://media2.dev.to/dynamic/image/width=1200,height=627,fit=cover,gravity=auto,format=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0wqnnm50zwbr0yhceksg.png)

Oct 26, 2026

## **What is props reactivity loss in Vue and how to avoid it?**

**Jakub Andrzejewski**

![Goodbye vue-tsc? Moving a Vue Project to TypeScript 7.1 Content Mappers](https://alexop.dev/posts/goodbye-vue-tsc-moving-a-vue-project-to-type-script-7-1-content-mappers/index.png)

Oct 24, 2026

## **Goodbye vue-tsc? Moving a Vue Project to TypeScript 7.1 Content Mappers**

**alexop.dev**

![The Perfect Backend? | Getting Started With Neon](https://i.ytimg.com/vi/OgS4bryzREo/hqdefault.jpg)

Oct 21, 2026

## **The Perfect Backend? | Getting Started With Neon**

**John Komarnicki**

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://vuedigest.com/#website","@type":"WebSite","description":"Your daily dose of Vue.js and Nuxt news. Curated articles, tutorials, and updates from the Vue ecosystem.","inLanguage":"en","name":"VueDigest","url":"https://vuedigest.com","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://vuedigest.com/news?search={search_term_string}"},"query-input":"required name=search_term_string"}],"publisher":{"@id":"https://vuedigest.com/#identity"}},{"@id":"https://vuedigest.com/news/serko-vincent-ngai---when-tree-shaking-fails-security-risks-in-nuxt-amp-vue#webpage","@type":"WebPage","dateModified":"2026-05-01T12:00:16.190Z","datePublished":"2026-05-01T10:00:06.000Z","description":"The article discusses the security risks associated with tree shaking in the Vue and Nuxt frameworks, highlighting potential vulnerabilities that can arise when this optimization technique fails. It emphasizes the importance of understanding these risks to maintain secure applications.","name":"SerKo Vincent Ngai - When Tree Shaking Fails: Security Risks in Nuxt &amp; Vue","url":"https://vuedigest.com/news/serko-vincent-ngai---when-tree-shaking-fails-security-risks-in-nuxt-amp-vue","breadcrumb":{"@id":"https://vuedigest.com/news/serko-vincent-ngai---when-tree-shaking-fails-security-risks-in-nuxt-amp-vue#breadcrumb"},"isPartOf":{"@id":"https://vuedigest.com/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://vuedigest.com/news/serko-vincent-ngai---when-tree-shaking-fails-security-risks-in-nuxt-amp-vue"]}],"primaryImageOfPage":{"@id":"https://vuedigest.com/#logo"}},{"@id":"https://vuedigest.com/#identity","@type":"Organization","name":"VueDigest","url":"https://vuedigest.com","logo":{"@id":"https://vuedigest.com/#logo"}},{"@id":"https://vuedigest.com/news/serko-vincent-ngai---when-tree-shaking-fails-security-risks-in-nuxt-amp-vue#article","dateModified":"2026-05-01T12:00:16.190Z","datePublished":"2026-05-01T10:00:06.000Z","description":"The article discusses the security risks associated with tree shaking in the Vue and Nuxt frameworks, highlighting potential vulnerabilities that can arise when this optimization technique fails. It emphasizes the importance of understanding these risks to maintain secure applications.","headline":"SerKo Vincent Ngai - When Tree Shaking Fails: Security Risks in Nuxt &amp; Vue","inLanguage":"en","thumbnailUrl":"https://i.ytimg.com/vi/YXG514QueOc/hqdefault.jpg","@type":["Article","NewsArticle"],"author":{"@id":"https://vuedigest.com/#identity"},"image":["https://i.ytimg.com/vi/YXG514QueOc/hqdefault.jpg"],"isPartOf":{"@id":"https://vuedigest.com/news/serko-vincent-ngai---when-tree-shaking-fails-security-risks-in-nuxt-amp-vue#webpage"},"keywords":["vue","performance","nuxt","security"],"mainEntityOfPage":{"@id":"https://vuedigest.com/news/serko-vincent-ngai---when-tree-shaking-fails-security-risks-in-nuxt-amp-vue#webpage"},"publisher":{"@id":"https://vuedigest.com/#identity"}},{"@id":"https://vuedigest.com/news/serko-vincent-ngai---when-tree-shaking-fails-security-risks-in-nuxt-amp-vue#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","item":"https://vuedigest.com/news","name":"Articles","position":1},{"@type":"ListItem","name":"SerKo Vincent Ngai - When Tree Shaking Fails: Security Risks in Nuxt &amp; Vue","position":2}]},{"@id":"https://vuedigest.com/#logo","@type":"ImageObject","caption":"VueDigest","contentUrl":"https://mokkapps.twic.pics/vuedigest.com/logo.png","inLanguage":"en","url":"https://mokkapps.twic.pics/vuedigest.com/logo.png"}]}
```

## Sitemap

See the full [sitemap](https://vuedigest.com/sitemap.md) for all pages.
