babel-plugin-dev
Replaces __DEV__
with process.env.NODE_ENV !== 'production'
.
Installation
$ npm install babel-plugin-dev
Usage
.babelrc
(Recommended)
Via .babelrc
Via CLI
$ babel --plugins dev script.js
Via Node API
;
Running the tests
$ git clone https://github.com/Zenwolf/babel-plugin-dev.git$ cd babel-plugin-dev$ npm install$ npm test