corvée: active la compilation du JS pour vieux navigateurs

This commit is contained in:
gcch 2025-06-24 14:25:09 +02:00
commit e5fcd069d3
3 changed files with 15 additions and 25 deletions

View file

@ -46,7 +46,7 @@ export default defineConfig(async ({ mode }) => {
entryFileNames: "[name].js",
validate: true,
},
treeshake: "smallest",
treeshake: true,
},
sourcemap: env.VITE_MODE === "production",
target: "es2020",
@ -65,7 +65,7 @@ export default defineConfig(async ({ mode }) => {
modernPolyfills: true,
modernTargets:
"chrome >0 and last 3 years, edge >0 and last 3 years, safari >0 and last 3 years, firefox >0 and last 3 years, and_chr >0 and last 3 years, and_ff >0 and last 3 years, ios >0 and last 3 years",
renderLegacyChunks: false,
renderLegacyChunks: true,
}),
compression({
algorithms: [