mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-03-26 07:04:05 +08:00
[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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user