Skip to content

Commit

Permalink
babel.config - disable console logging on native prod builds
Browse files Browse the repository at this point in the history
But do keep error and warn logs
  • Loading branch information
kidroca committed Nov 3, 2023
1 parent aa30ef2 commit 73beb39
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ const metro = {
},
],
],
env: {
production: {
plugins: ['transform-remove-console', {exclude: ['error', 'warn']}],
},
},
};

/*
Expand Down

0 comments on commit 73beb39

Please sign in to comment.