瀏覽代碼

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

jinmao88 1 年之前
父節點
當前提交
ca997c15ca
共有 1 個文件被更改,包括 1 次插入1 次删除
  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,