Course contentsShow
TypeScript
Lesson 511 of 1,79612. EnumsPro lesson

No Tree-Shaking for Enums

Bundlers struggle to tree-shake unused enum members because they're object properties, unlike unused string literals which disappear.

This lesson is for subscribers

You've completed the free preview. Subscribe to unlock every lesson in every course.