limited remove console plugin to production

This commit is contained in:
Nouman Tahir 2021-03-15 13:53:44 +05:00
parent 82e60d786f
commit 1f8db6f677
2 changed files with 7 additions and 1 deletions

7
.babelrc Normal file
View File

@ -0,0 +1,7 @@
{
"env": {
"production": {
"plugins": ["transform-remove-console"]
}
}
}

View File

@ -1,5 +1,4 @@
module.exports = {
presets: ['module:metro-react-native-babel-preset'],
plugins: ['transform-remove-console'],
sourceMaps: true,
};