Replaces __DEV__
with process.env.NODE_ENV !== 'production'
.
$ npm install babel-plugin-dev
.babelrc
{
"plugins": ["dev"]
}
$ babel --plugins dev script.js
require("babel-core").transform("code", {
plugins: ["dev"]
});
$ git clone https://github.com/Zenwolf/babel-plugin-dev.git
$ cd babel-plugin-dev
$ npm install
$ npm test