From 212fd4313f12635d1103620fcd2a44758f8b4495 Mon Sep 17 00:00:00 2001 From: Novout Date: Tue, 9 May 2023 00:42:47 -0300 Subject: [PATCH] build: splitted case --- packages/app/vite.config.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/app/vite.config.ts b/packages/app/vite.config.ts index 2b7e1360..d380c924 100644 --- a/packages/app/vite.config.ts +++ b/packages/app/vite.config.ts @@ -148,13 +148,15 @@ export default ({ mode }) => { build: { outDir: resolve(__dirname, 'dist/render'), emptyOutDir: true, - chunkSizeWarningLimit: 3000, // pdfmake + chunkSizeWarningLimit: 4000, // pdfmake minify: 'esbuild', rollupOptions: { output:{ manualChunks(id) { - if (id.includes('node_modules')) { - return id.toString().split('node_modules/.pnpm/')[1].split('/')[0].toString(); + const splitted = 'node_modules/.pnpm/' + + if (id.includes(splitted)) { + return id.toString().split(splitted)[1].split('/')[0].toString(); } } }