Browse Source

🎨 优化打包配置

快乐的梦鱼 1 month ago
parent
commit
9b28dc3a0e
1 changed files with 2 additions and 1 deletions
  1. 2 1
      vite.config.ts

+ 2 - 1
vite.config.ts

@@ -13,8 +13,9 @@ export default defineConfig({
   plugins: [
     vue(),
     legacy({
-      targets: ['defaults', 'not IE 11'],
+      targets: ['chrome < 60', 'edge < 15'],
       renderLegacyChunks: true,
+      renderModernChunks: false,
     }),
     vueJsx(),
     vueDevTools(),