Skip to content

Commit

Permalink
πŸ§‘β€πŸ’» chore(core): Do not drop console.log when compiling
Browse files Browse the repository at this point in the history
  • Loading branch information
duckception committed Jan 9, 2024
1 parent 39f84fb commit 37eead3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/core/src/cli/compileWalletSetupFunctions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export async function compileWalletSetupFunctions(walletSetupDir: string, debug:
)
}

// TODO: In this step, modify `console.log` so it prints from which file the log is coming from.
await build({
name: 'cli-build',
silent: true,
Expand All @@ -43,9 +44,6 @@ export async function compileWalletSetupFunctions(walletSetupDir: string, debug:
external: ['@synthetixio/synpress', '@playwright/test', 'playwright-core', 'esbuild', 'tsup'],
banner: {
js: FIXES_BANNER
},
esbuildOptions(options) {
options.drop = debug ? [] : ['console', 'debugger']
}
})

Expand Down

0 comments on commit 37eead3

Please sign in to comment.