Kaynağa Gözat

fix: 默认不清除ts内console.log()

jinmao88 1 yıl önce
ebeveyn
işleme
ca997c15ca
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      internal/vite-config/src/config/common.ts

+ 1 - 1
internal/vite-config/src/config/common.ts

@@ -7,7 +7,7 @@ const commonConfig: UserConfig = {
     host: true,
   },
   esbuild: {
-    drop: ['console', 'debugger'],
+    drop: ['debugger'],
   },
   build: {
     reportCompressedSize: false,