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 stale · no recent hits
total hits 19
actors 4 distinct systems
last hit 17d ago AhrefsBot
top countries 🇸🇬 Singapore · 🇨🇦 Canada · 🇺🇸 United States · BD · 🇧🇷 Brazil
Resources
API endpoints
full doc /v1/registry/babel-plugin-undebug
compatibility /v1/registry/babel-plugin-undebug/compatibility