diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml new file mode 100644 index 0000000..5ed0b5a --- /dev/null +++ b/pnpm-workspace.yaml @@ -0,0 +1,2 @@ +allowBuilds: + esbuild: true diff --git a/vite.config.ts b/vite.config.ts index 072529e..aa5e939 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -12,4 +12,18 @@ export default defineConfig({ "@": path.resolve(__dirname, "./src"), }, }, + build: { + rolldownOptions: { + output: { + codeSplitting: { + groups: [ + { + name: "pixi", + test: /node_modules[\\/](pixi\.js|@pixi)[\\/]/, + }, + ], + }, + }, + }, + }, });