diff --git a/vite.config.js b/vite.config.js index 6135e007..00364fad 100644 --- a/vite.config.js +++ b/vite.config.js @@ -18,7 +18,16 @@ export default ({ mode }) => { }, build: { - chunkSizeWarningLimit: 3000, + chunkSizeWarningLimit: 1500, + rollupOptions: { + output: { + manualChunks(id) { + if (id.includes('node_modules')) { + return id.toString().split("node_modules/")[1].split("/")[0].toString(); + } + } + } + } }, server: {