From 45242a1fa1c0b6894108fa22f0d6f325f8f906fb Mon Sep 17 00:00:00 2001 From: "mula.liu" Date: Wed, 21 Jan 2026 12:54:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=BC=BA=E5=85=BC=E5=AE=B9=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vite.config.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/vite.config.ts b/vite.config.ts index b5e4468..d171d81 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -12,9 +12,7 @@ export default defineConfig(({ mode }) => { }, plugins: [react()], build: { - // 设置为 es2015,Vite (esbuild) 会自动把 ?. 和 ?? 转译成常规的 if/else - target: 'es2015', - cssTarget: 'chrome61', // 防止 CSS 中的新特性在旧浏览器报错 + target: 'es2015', }, define: { 'process.env.API_KEY': JSON.stringify(env.GEMINI_API_KEY),