Skip to content

Commit

Permalink
chore: remove consoles
Browse files Browse the repository at this point in the history
  • Loading branch information
geolffreym committed Jan 23, 2025
1 parent 44b11e2 commit 4e98039
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { nodePolyfills } from 'vite-plugin-node-polyfills'
export default defineConfig(({ mode }) => {
// Load environment variables based on the current mode
const env = loadEnv(mode, process.cwd(), '');
const pure = mode === 'production' ? ['console.log', 'console.info'] : []
const pure = mode === 'production' ? ['console.log', 'console.info', 'console.warn'] : []

return {
esbuild: { pure },
Expand Down

0 comments on commit 4e98039

Please sign in to comment.