corvée: active la compilation du JS pour vieux navigateurs
This commit is contained in:
parent
ee7d8c8ff7
commit
e5fcd069d3
3 changed files with 15 additions and 25 deletions
|
|
@ -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: [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue