Why Your TypeScript Enum Is 5KB in Your Bundle episode artwork

EPISODE · Jun 14, 2026 · 6 MIN

Why Your TypeScript Enum Is 5KB in Your Bundle

from The Web Development Podcast with Fexingo: Frontend, Backend, and Modern Web Stack · host Fexingo

Episode 51 of The Web Development Podcast: Lucas and Luna investigate why TypeScript enums bloat your JavaScript bundle by 5KB or more. They walk through the actual compiled output — a reverse-lookup object — and compare it to simpler alternatives like const objects and union types. Using real-world examples from a 2026 React dashboard, they measure the bundle impact, discuss when an enum is actually worth the cost, and show how tree-shaking fails on most enum patterns. By the end, you'll know exactly when to reach for an enum and when to use a 50-byte alternative. Plus: a quick note on how listener support keeps this show ad-free. #TypeScript #JavaScript #BundleSize #WebPerformance #Frontend #React #TreeShaking #Coding #WebDev #FexingoTechnology #TechnologyPodcast #SoftwareEngineering #WebDevelopmentPodcast #Enum #ConstObject #UnionType #BuildOptimization #CodeReview #TypeScript #JavaScript #BundleSize #WebPerformance #Frontend #React #TreeShaking #Coding #WebDev #FexingoTechnology #TechnologyPodcast #SoftwareEngineering #WebDevelopmentPodcast #Enum #ConstObject #UnionType #BuildOptimization #CodeReview Keep every episode free: buymeacoffee.com/fexingo

Episode metadata supplied by the publisher feed · Published Jun 14, 2026

Embed this episode

NOW PLAYING

Why Your TypeScript Enum Is 5KB in Your Bundle

0:00 6:49

No transcript for this episode yet

We transcribe on demand. Request one and we'll notify you when it's ready — usually under 10 minutes.

No similar episodes found.

No similar podcasts found.

Frequently Asked Questions

How long is this episode of The Web Development Podcast with Fexingo: Frontend, Backend, and Modern Web Stack?

This episode is 6 minutes long.

When was this The Web Development Podcast with Fexingo: Frontend, Backend, and Modern Web Stack episode published?

This episode was published on June 14, 2026.

Can I download this The Web Development Podcast with Fexingo: Frontend, Backend, and Modern Web Stack episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.
URL copied to clipboard!