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'],