Compare commits

...

3 Commits

Author SHA1 Message Date
朱志育 430a8fe960 again 7 months ago
姜鑫 5c1cebc438 Merge pull request 'refactor: ♻️ 再试试' (#6) from dev into test 7 months ago
姜鑫 a69bba5164 refactor: ♻️ 再试试 7 months ago
  1. 5
      vite.config.ts

5
vite.config.ts

@ -10,8 +10,9 @@ export default defineConfig({
splitVendorChunkPlugin(), splitVendorChunkPlugin(),
legacy({ legacy({
targets: ['Android >= 5', 'Chrome >= 64'], 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'], assetsInclude: ['/static/qm/three.js', '/static/qm/MainMap_QM.js'],

Loading…
Cancel
Save