babel-plugin-dev-expression

JSON →
library 0.2.3 ·javascript
verified May 27, 2026

A Babel plugin that mirrors Facebook's dev-expression transform, reducing or eliminating development checks (invariant, warning, __DEV__) from production code. Stable version 0.2.3, low release cadence. It replaces __DEV__ with process.env.NODE_ENV !== 'production', optimizes invariant and warning calls by wrapping them with environment checks. Differentiates from manual conditional code by automating transforms and handling edge cases like stringification.

total hits 21
actors 7 distinct systems
last hit 1d ago AhrefsBot
MetaBot
4
GPTBot
2
ByteDance
2
Script
1
Search engines
1
Humans
3

top countries 🇺🇸 United States · 🇩🇪 Germany · 🇸🇬 Singapore · 🇨🇦 Canada · 🇫🇷 France