Selaa lähdekoodia

Merge pull request #14958 from Ithanil/disable_console_log

feat: Disable console.log/debug in production
Tim Jaeryang Baek 4 kuukautta sitten
vanhempi
commit
91af2698be
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  1. 3 0
      vite.config.ts

+ 3 - 0
vite.config.ts

@@ -39,5 +39,8 @@ export default defineConfig({
 	},
 	worker: {
 		format: 'es'
+	},
+	esbuild: {
+		pure: ['console.log', 'console.debug']
 	}
 });