chore: update vite to 3.0.2

This commit is contained in:
max 2022-07-20 18:25:45 +03:00
parent cd86c61b79
commit c1e7d6f54a
4 changed files with 119 additions and 1871 deletions

View file

@ -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";
}
}
}