[react-native] Check in babel-plugin to inline __DEV__

Summary:
This plugin resolves __DEV__ to the value of `NODE_ENV === 'development'`. This can then be evaluated and dead code can be removed by uglifyjs.
This commit is contained in:
Amjad Masad 2015-08-15 12:17:01 -07:00
parent 324d154cf7
commit 9d96d00163
1 changed files with 2 additions and 1 deletions

View File

@ -49,7 +49,8 @@
"absolute-path": "0.0.0",
"babel": "5.4.3",
"babel-core": "5.6.4",
"babel-plugin-node-env-inline": "^1.0.1",
"babel-plugin-dunderscore-dev-inline": "1.0.1",
"babel-plugin-node-env-inline": "1.0.1",
"chalk": "1.0.0",
"connect": "2.8.3",
"debug": "2.1.0",