From 4b16bfff2959d19bc610f65c443e38ee217dc5c6 Mon Sep 17 00:00:00 2001 From: Nate Kelley Date: Wed, 13 Aug 2025 14:19:50 -0600 Subject: [PATCH] supabase is its own chunk --- apps/web-tss/src/components/ui/toaster/Toaster.tsx | 4 +++- .../src/context/BusterNotifications/BusterNotifications.tsx | 4 ++-- apps/web-tss/src/routes/auth.login.tsx | 3 +-- apps/web-tss/vite.config.ts | 4 ++++ 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/apps/web-tss/src/components/ui/toaster/Toaster.tsx b/apps/web-tss/src/components/ui/toaster/Toaster.tsx index 747b510f5..640209138 100644 --- a/apps/web-tss/src/components/ui/toaster/Toaster.tsx +++ b/apps/web-tss/src/components/ui/toaster/Toaster.tsx @@ -2,7 +2,9 @@ import type React from 'react'; import { Toaster as ToasterSonner } from 'sonner'; -import { CircleCheck, CircleWarning, CircleXmark } from '../icons/NucleoIconOutlined'; +import CircleCheck from '../icons/NucleoIconOutlined/circle-check'; +import CircleWarning from '../icons/NucleoIconOutlined/circle-warning'; +import CircleXmark from '../icons/NucleoIconOutlined/circle-xmark'; type ToasterProps = React.ComponentProps; diff --git a/apps/web-tss/src/context/BusterNotifications/BusterNotifications.tsx b/apps/web-tss/src/context/BusterNotifications/BusterNotifications.tsx index 263ea42d6..866e8bf26 100644 --- a/apps/web-tss/src/context/BusterNotifications/BusterNotifications.tsx +++ b/apps/web-tss/src/context/BusterNotifications/BusterNotifications.tsx @@ -4,7 +4,7 @@ import type React from 'react'; import type { PropsWithChildren } from 'react'; import { type ExternalToast, toast } from 'sonner'; import { createContext, useContextSelector } from 'use-context-selector'; -import { ConfirmModal } from '@/components/ui/modal/ConfirmModal'; +// import { ConfirmModal } from '@/components/ui/modal/ConfirmModal'; import { Toaster } from '@/components/ui/toaster/Toaster'; import { useOpenConfirmModal } from './useConfirmModal'; @@ -134,7 +134,7 @@ export const BusterNotificationsProvider: React.FC = ({ child {children} - + {/* */} ); }; diff --git a/apps/web-tss/src/routes/auth.login.tsx b/apps/web-tss/src/routes/auth.login.tsx index 1b5d11a1f..74e8193de 100644 --- a/apps/web-tss/src/routes/auth.login.tsx +++ b/apps/web-tss/src/routes/auth.login.tsx @@ -1,7 +1,6 @@ -import { createFileRoute, useRouter } from '@tanstack/react-router'; +import { createFileRoute } from '@tanstack/react-router'; import { z } from 'zod'; import { LoginForm } from '@/components/features/auth/LoginForm'; -import { signInWithEmailAndPassword } from '../integrations/supabase/signIn'; const searchParamsSchema = z.object({ next: z.string().optional(), diff --git a/apps/web-tss/vite.config.ts b/apps/web-tss/vite.config.ts index acaf83f1e..8e838f476 100644 --- a/apps/web-tss/vite.config.ts +++ b/apps/web-tss/vite.config.ts @@ -31,6 +31,10 @@ const config = defineConfig({ if (id.includes('node_modules/lodash-es')) { return 'vendor-lodash'; } + // Move supabase modules to their own chunk + if (id.includes('node_modules/@supabase')) { + return 'vendor-supabase'; + } }, }, },