From 32daad619834a31929ab0aa19cb0d37b8662486d Mon Sep 17 00:00:00 2001 From: ZhangZhiChao <54631354+Alkaidcc@users.noreply.github.com> Date: Fri, 10 Feb 2023 19:52:42 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Desbuild=E7=9A=84drop?= =?UTF-8?q?=5Fconsole=20(#2542)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vite.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vite.config.ts b/vite.config.ts index b157f5d3..830e2985 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -61,7 +61,7 @@ export default ({ command, mode }: ConfigEnv): UserConfig => { proxy: createProxy(VITE_PROXY), }, esbuild: { - pure: VITE_DROP_CONSOLE ? ['console.log', 'debugger'] : [], + drop: VITE_DROP_CONSOLE ? ['console', 'debugger'] : [], }, build: { target: 'es2015',