diff --git a/.babelrc b/.babelrc index d0cf03dfa..ac8c2e036 100644 --- a/.babelrc +++ b/.babelrc @@ -1,4 +1,9 @@ { "presets": ["react-native"], - "plugins": ["transform-decorators-legacy"] + "plugins": ["transform-decorators-legacy"], + "env": { + "production": { + "plugins": ["transform-remove-console"] + } + } } diff --git a/package.json b/package.json index b65a312aa..11a77c4ef 100644 --- a/package.json +++ b/package.json @@ -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",