build: 更新 @vitejs/plugin-legacy 插件配置,关闭 polyfills

This commit is contained in:
2024-09-08 22:53:35 +08:00
parent 0a86b75454
commit 0c9091f5e6

View File

@@ -22,6 +22,7 @@ export default defineConfig({
envPrefix: 'V_ENV_', envPrefix: 'V_ENV_',
plugins: [ plugins: [
legacy({ legacy({
polyfills: false,
renderLegacyChunks: true, renderLegacyChunks: true,
renderModernChunks: true, renderModernChunks: true,
targets: ['defaults', 'not IE 11'], targets: ['defaults', 'not IE 11'],