remove console.logs on production

This commit is contained in:
Guilherme Gazzo 2017-11-19 00:23:15 -02:00
parent 675a61caba
commit 597c7e165e
2 changed files with 7 additions and 1 deletions

View File

@ -1,4 +1,9 @@
{
"presets": ["react-native"],
"plugins": ["transform-decorators-legacy"]
"plugins": ["transform-decorators-legacy"],
"env": {
"production": {
"plugins": ["transform-remove-console"]
}
}
}

View File

@ -15,6 +15,7 @@
},
"dependencies": {
"babel-plugin-transform-decorators-legacy": "^1.3.4",
"babel-plugin-transform-remove-console": "^6.8.5",
"babel-polyfill": "^6.26.0",
"moment": "^2.19.2",
"prop-types": "^15.6.0",