Remove development warning from production code
npm install babel-plugin-transform-dev-warning


This plugin removes development warning from production code.
It's recommended to be used with https://github.com/BerkeleyTrue/warning.
In
``js`
warning(condition, argument, argument);
Out
`js`
if (process.env.NODE_ENV !== 'production') {
warning(condition, argument, argument);
}
`sh`
$ npm install --save-dev babel-plugin-transform-dev-warning
#### Via .babelrc (Recommended)
.babelrc
`json`
{
"env": {
"production": {
"plugins": ["transform-dev-warning"]
}
}
}
#### Via CLI
`sh`
$ babel --plugins transform-dev-warning script.js
#### Via Node API
`js``
require("babel-core").transform("code", {
plugins: ["transform-dev-warning"]
});
MIT