Skip to content

Commit

Permalink
Remove console logs in prod builds
Browse files Browse the repository at this point in the history
Related to #1252
  • Loading branch information
nop33 committed Feb 11, 2025
1 parent f5bc1b8 commit 1d940a2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions apps/mobile-wallet/metro.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,11 @@ config.resolver.nodeModulesPaths = [
// Use turborepo to restore the cache when possible
config.cacheStores = [new FileStore({ root: path.join(projectRoot, 'node_modules', '.cache', 'metro') })]

config.transformer.minifierConfig = {
compress: {
// The option below removes all console logs statements in production.
drop_console: true
}
}

module.exports = config

0 comments on commit 1d940a2

Please sign in to comment.