babel-plugin-undebug
JSON →A Babel plugin that strips `debug` function calls from production code to reduce bundle size and eliminate debug overhead. Version 3.0.0 is ESM-only, requires Node.js 18+, and ships TypeScript types. It handles both CommonJS (`require('debug')`) and ESM (`import debug from 'debug'`) imports, removing all debug calls including side-effectful expressions like `d(value++)`. Unlike manual removal, it automates stripping without source code changes.
Traffic · last 30 days ↓14% vs prev 7d
total hits 25
actors 8 distinct systems
last hit 18h ago Amazonbot
top countries 🇺🇸 United States · 🇩🇪 Germany · 🇸🇬 Singapore · 🇨🇦 Canada · 🇪🇸 Spain
Resources
API endpoints
full doc /v1/registry/babel-plugin-undebug
compatibility /v1/registry/babel-plugin-undebug/compatibility