From a2a78f40dac398f241f7dfe9c320b58259a7d1bb Mon Sep 17 00:00:00 2001 From: scottMan1001 <3141996514@qq.com> Date: Wed, 16 Aug 2023 21:35:21 +0800 Subject: [PATCH] Feat/scott man (#2970) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: esbuild增加不同开发模式下对cnosole debugger的处理 * fix: fix production spelling --- internal/vite-config/src/config/common.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/vite-config/src/config/common.ts b/internal/vite-config/src/config/common.ts index dae0409ab..9a5d08bf4 100644 --- a/internal/vite-config/src/config/common.ts +++ b/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,