From 560c4eda725ff1522d1cd01b29cd15f2ae402a0b Mon Sep 17 00:00:00 2001 From: bach Date: Wed, 10 Apr 2024 10:12:13 +0200 Subject: [PATCH] vite build drop console --- vite.config.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/vite.config.js b/vite.config.js index 2a05008..6c4a763 100644 --- a/vite.config.js +++ b/vite.config.js @@ -35,4 +35,13 @@ export default defineConfig({ }, }, }, + build: { + rollupOptions: { + // https://rollupjs.org/configuration-options/ + }, + }, + // https://github.com/vitejs/vite/discussions/7920 + esbuild: { + drop: ['console', 'debugger'], + }, })