
Product
Socket for Jira Is Now Available
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.
babel-plugin-dev-expression
Advanced tools
A mirror of Facebook's dev-expression Babel plugin.
This plugin reduces or eliminates development checks from production code.
__DEV__Replaces
__DEV__
with
process.env.NODE_ENV !== 'production'
Note: The dev-expression transform does not run when NODE_ENV is test. As such, if you use __DEV__, you will need to define it as a global constant in your test environment.
invariantReplaces
invariant(condition, argument, argument);
with
if (!condition) {
if ("production" !== process.env.NODE_ENV) {
invariant(false, argument, argument);
} else {
invariant(false);
}
}
Recommended for use with https://github.com/zertosh/invariant or smaller https://github.com/alexreardon/tiny-invariant.
warningReplaces
warning(condition, argument, argument);
with
if ("production" !== process.env.NODE_ENV) {
warning(condition, argument, argument);
}
Recommended for use with https://github.com/r3dm/warning or smaller https://github.com/alexreardon/tiny-warning.
FAQs
A mirror of Facebook's dev-expression Babel plugin
The npm package babel-plugin-dev-expression receives a total of 84,543 weekly downloads. As such, babel-plugin-dev-expression popularity was classified as popular.
We found that babel-plugin-dev-expression demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.