浏览代码

Feat/scott man (#2970)

* feat: esbuild增加不同开发模式下对cnosole debugger的处理

* fix: fix production spelling
scottMan1001 1 年之前
父节点
当前提交
a2a78f40da
共有 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: (mode: string) => UserConfig = (mode) => ({
     host: true,
   },
   esbuild: {
-    drop: mode === 'procution' ? ['console', 'debugger'] : [],
+    drop: mode === 'production' ? ['console', 'debugger'] : [],
   },
   build: {
     reportCompressedSize: false,