Browse Source

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

jinmao88 1 year ago
parent
commit
ca997c15ca
1 changed files with 1 additions and 1 deletions
  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,