Skip to content

Commit

Permalink
perf(vite): split chunks
Browse files Browse the repository at this point in the history
  • Loading branch information
domi7777 committed Sep 28, 2024
1 parent eb8d3ee commit d2d0b1c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Kit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,5 @@ export const Kit = () => {
resizeGame(game);
});
}
return <></>;
}
10 changes: 10 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,14 @@ export default defineConfig({
}
})
],
build: {
rollupOptions: {
output: {
manualChunks: {
react: ['react', 'react-dom'],
phaser: ['phaser'],
}
}
}
}
})

0 comments on commit d2d0b1c

Please sign in to comment.