From 25cfd2383b46a7ed6b46482a80edee8480fe50d8 Mon Sep 17 00:00:00 2001 From: shafin-r Date: Thu, 12 Mar 2026 19:35:58 +0600 Subject: [PATCH] chore(troika): install troika utils --- package.json | 2 ++ pnpm-lock.yaml | 6 ++++++ vite.config.ts | 10 ++++++++-- 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 50690b5..6cf9f02 100644 --- a/package.json +++ b/package.json @@ -35,6 +35,8 @@ "tailwind-merge": "^3.4.0", "tailwindcss": "^4.1.18", "three": "^0.183.2", + "troika-three-text": "^0.52.4", + "troika-worker-utils": "^0.52.0", "vaul": "^1.1.2", "zustand": "^5.0.9" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a0a10da..fd54d69 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -83,6 +83,12 @@ importers: three: specifier: ^0.183.2 version: 0.183.2 + troika-three-text: + specifier: ^0.52.4 + version: 0.52.4(three@0.183.2) + troika-worker-utils: + specifier: ^0.52.0 + version: 0.52.0 vaul: specifier: ^1.1.2 version: 1.1.2(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3) diff --git a/vite.config.ts b/vite.config.ts index 10cc363..5435748 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -11,7 +11,13 @@ export default defineConfig({ "@": path.resolve(__dirname, "./src"), }, }, - esbuild: { - keepNames: true, + build: { + rollupOptions: { + output: { + manualChunks: { + troika: ["troika-three-text", "troika-worker-utils"], + }, + }, + }, }, }); -- 2.49.0