remove console.logs on production
This commit is contained in:
parent
675a61caba
commit
597c7e165e
7
.babelrc
7
.babelrc
|
@ -1,4 +1,9 @@
|
||||||
{
|
{
|
||||||
"presets": ["react-native"],
|
"presets": ["react-native"],
|
||||||
"plugins": ["transform-decorators-legacy"]
|
"plugins": ["transform-decorators-legacy"],
|
||||||
|
"env": {
|
||||||
|
"production": {
|
||||||
|
"plugins": ["transform-remove-console"]
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"babel-plugin-transform-decorators-legacy": "^1.3.4",
|
"babel-plugin-transform-decorators-legacy": "^1.3.4",
|
||||||
|
"babel-plugin-transform-remove-console": "^6.8.5",
|
||||||
"babel-polyfill": "^6.26.0",
|
"babel-polyfill": "^6.26.0",
|
||||||
"moment": "^2.19.2",
|
"moment": "^2.19.2",
|
||||||
"prop-types": "^15.6.0",
|
"prop-types": "^15.6.0",
|
||||||
|
|
Loading…
Reference in New Issue