2024-12-03
This commit is contained in:
parent
8613e0698c
commit
e27f6eaf31
11 changed files with 1727 additions and 2060 deletions
|
|
@ -1,3 +1,4 @@
|
|||
import legacy from "@vitejs/plugin-legacy";
|
||||
import { fdir } from "fdir";
|
||||
import { resolve } from "node:path";
|
||||
import process from "node:process";
|
||||
|
|
@ -59,6 +60,12 @@ export default defineConfig(async ({ mode }) => {
|
|||
include: [],
|
||||
protocolImports: true,
|
||||
}),
|
||||
legacy({
|
||||
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,
|
||||
}),
|
||||
],
|
||||
};
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue