Babel v6 plugin that replaces all occurrences of __DEV__ with the evaluation of "production" !== process.env.NODE_ENV. Currently at version 2.0.1, with no recent updates. It simplifies stripping development-only code from production bundles. Unlike similar plugins, it evaluates the expression at build time, replacing __DEV__ with a boolean literal. Limited to Babel v6; unmaintained since 2018. Use @babel/plugin-transform-dotenv or custom plugins for modern Babel.
npm install babel-plugin-transform-devVerified import paths — ran on the pinned version, not inferred.
Demonstrates replacing __DEV__ with a boolean based on environment variable.
Use @babel/plugin-transform-dev or a custom plugin for Babel v7+.
Consider alternatives like @babel/plugin-transform-dotenv or custom babel macros.
Ensure your build system defines NODE_ENV (e.g., 'production' via webpack DefinePlugin).
Switch to @babel/plugin-transform-dev or another alternative.
Verify plugin is included in .babelrc and Babel is running correctly.
Use array syntax: ['transform-dev', { evaluate: false }].No dependency data recorded yet.