Babel Dead Code Elimination

JSON →
library 1.0.12 ·javascript
verified May 27, 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 24
actors 8 distinct systems
last hit 2d ago Amazonbot
Amazonbot
4
MetaBot
4
ByteDance
3
GPTBot
2
Script
1
Search engines
1
Humans
1

top countries 🇺🇸 United States · 🇩🇪 Germany · 🇸🇬 Singapore · 🇨🇦 Canada · 🇪🇸 Spain