diff --git a/src/Kit.tsx b/src/Kit.tsx index b873ca4..72bb9ec 100644 --- a/src/Kit.tsx +++ b/src/Kit.tsx @@ -31,4 +31,5 @@ export const Kit = () => { resizeGame(game); }); } + return <>; } diff --git a/vite.config.ts b/vite.config.ts index 8aa59c6..1d04a06 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -50,4 +50,14 @@ export default defineConfig({ } }) ], + build: { + rollupOptions: { + output: { + manualChunks: { + react: ['react', 'react-dom'], + phaser: ['phaser'], + } + } + } + } })