Preparing for system design interviews?  Try bugzed.com →

Babel Dead Code Elimination

JSON →
library 1.0.12 ·javascript
verified Jun 17, 2026

A library providing composable primitives for dead code elimination in Babel AST, version 1.0.12. It is not a Babel plugin but a set of utilities (deadCodeElimination, findReferencedIdentifiers) to integrate into custom transforms. Released as a stable package with frequent patches, it differs from full-featured plugins by offering fine-grained control and working directly with the AST. Main use cases: removing unused variables, handling side-effects carefully via referenced identifier tracking, and preserving runtime behavior (e.g., object rest patterns). Ships TypeScript types.

total hits 17
actors 4 distinct systems
last hit 17d ago AhrefsBot
GPTBot
4
ByteDance
4
Script
1
Humans
4

top countries 🇺🇸 United States · 🇸🇬 Singapore · 🇨🇦 Canada · 🇮🇩 Indonesia · LT