{"library":"babel-plugin-undebug","type":"library","category":null,"description":"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.","language":"javascript","status":"active","version":"3.0.0","tags":["javascript","babel","plugin","debug","undebug","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install babel-plugin-undebug","imports":["import babelPluginUndebug from 'babel-plugin-undebug'","module.exports = { plugins: [['babel-plugin-undebug', options]] }","plugins: ['babel-plugin-undebug']"]},{"cmd":"yarn add babel-plugin-undebug","imports":[]},{"cmd":"pnpm add babel-plugin-undebug","imports":[]}],"homepage":null,"github":"https://github.com/wooorm/babel-plugin-undebug","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/babel-plugin-undebug","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/babel-plugin-undebug/compatibility"}}