From 0eca8773651d4e82eb7015b802c93752d9335eff Mon Sep 17 00:00:00 2001 From: "mula.liu" Date: Thu, 22 Jan 2026 18:00:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=85=BC=E5=AE=B9=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/vite.config.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/vite.config.js b/frontend/vite.config.js index 26b56c2..c07dcac 100644 --- a/frontend/vite.config.js +++ b/frontend/vite.config.js @@ -8,8 +8,10 @@ export default defineConfig({ plugins: [ react(), legacy({ - targets: ['defaults', 'not IE 11'], - }), + targets: ['chrome >= 64', 'safari >= 11', 'ios >= 11', 'android >= 9'], + additionalLegacyPolyfills: ['regenerator-runtime/runtime'], + modernPolyfills: true, + }), ], resolve: { alias: {