Skip to content

Commit

Permalink
build: splitted case
Browse files Browse the repository at this point in the history
  • Loading branch information
Novout committed May 9, 2023
1 parent 9733f91 commit 212fd43
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/app/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
}
Expand Down

0 comments on commit 212fd43

Please sign in to comment.