From a69bba516474eb5777a76c26e67190d78177aed0 Mon Sep 17 00:00:00 2001 From: jiangx Date: Fri, 31 Oct 2025 09:22:59 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E2=99=BB=EF=B8=8F=20=E5=86=8D?= =?UTF-8?q?=E8=AF=95=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vite.config.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vite.config.ts b/vite.config.ts index 0dcc8fe..646140f 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -10,8 +10,9 @@ export default defineConfig({ splitVendorChunkPlugin(), legacy({ targets: ['Android >= 5', 'Chrome >= 64'], - modernPolyfills: true, - additionalLegacyPolyfills: ['regenerator-runtime/runtime'] + modernPolyfills: false, + renderLegacyChunks: true, + renderModernChunks: false // ✅ 禁止输出 module 版本 }) ], assetsInclude: ['/static/qm/three.js', '/static/qm/MainMap_QM.js'],