{"library":"babel-plugin-dev","type":"library","category":null,"description":"Simple Babel plugin that replaces the global `__DEV__` identifier with `process.env.NODE_ENV !== 'production'`, allowing developers to conditionally include debug-only code without runtime overhead. Version 1.0.0 is stable and final; no new releases expected. It is lightweight with zero dependencies, works with Babel 6 and 7, and is used in production by many React-based libraries. Unlike alternatives like babel-plugin-transform-inline-environment-variables or manual if-blocks, this plugin provides a single-purpose, semantic `__DEV__` syntax with no configuration required.","language":"javascript","status":"maintenance","version":"1.0.0","tags":["javascript","babel-plugin","dev","debug"],"last_verified":"Wed May 27","install":[{"cmd":"npm install babel-plugin-dev","imports":["module.exports = { plugins: ['dev'] }","const babel = require('@babel/core'); babel.transform(code, { plugins: ['dev'] })","babel --plugins dev script.js"]},{"cmd":"yarn add babel-plugin-dev","imports":[]},{"cmd":"pnpm add babel-plugin-dev","imports":[]}],"homepage":null,"github":"https://github.com/Zenwolf/babel-plugin-dev","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/babel-plugin-dev","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-dev/compatibility"}}