mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 17:51:24 +01:00
chore: update vite to 3.0.2
This commit is contained in:
parent
cd86c61b79
commit
c1e7d6f54a
4 changed files with 119 additions and 1871 deletions
|
|
@ -56,16 +56,9 @@ export default defineConfig(({mode}) => {
|
|||
rollupOptions: {
|
||||
output: {
|
||||
manualChunks(id, {getModuleInfo}) {
|
||||
if (id.includes("d3")) {
|
||||
return "d3";
|
||||
}
|
||||
if (id.includes("node_modules")) {
|
||||
return "vendor";
|
||||
}
|
||||
const importersLen = getModuleInfo(id).importers.length;
|
||||
if (importersLen > 1) {
|
||||
return "common";
|
||||
}
|
||||
if (id.includes("d3")) return "d3";
|
||||
if (id.includes("node_modules")) return "vendor";
|
||||
if (getModuleInfo(id).importers.length > 1) return "common";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue