Remove console logs from production

This commit is contained in:
Brandon Presley 2022-07-09 12:49:07 +12:00
parent c80c65e171
commit 7a5ff97dfc
2 changed files with 6 additions and 0 deletions

View File

@ -1,4 +1,9 @@
module.exports = {
presets: ['module:metro-react-native-babel-preset'],
plugins: ['react-native-reanimated/plugin', 'react-native-paper/babel'],
env: {
production: {
plugins: ['transform-remove-console'],
},
},
};

View File

@ -17,6 +17,7 @@
"@react-navigation/native-stack": "^6.6.2",
"@types/react-native-sqlite-storage": "^5.0.2",
"@types/react-native-vector-icons": "^6.4.11",
"babel-plugin-transform-remove-console": "^6.9.4",
"date-fns": "^2.28.0",
"react": "18.0.0",
"react-devtools": "^4.24.7",