Esbuild and removing console.log in prod

Hi all,

Has anyone done something like this in their config.exs or prod.exs?

export default defineConfig({
    esbuild: {
      drop: ['console', 'debugger'],
    },

Thanks.

1 Like