소스 검색

vite build drop console

bach 11 달 전
부모
커밋
560c4eda72
1개의 변경된 파일9개의 추가작업 그리고 0개의 파일을 삭제
  1. 9 0
      vite.config.js

+ 9 - 0
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'],
+  },
 })