supabase is its own chunk

This commit is contained in:
Nate Kelley 2025-08-13 14:19:50 -06:00
parent d93508c575
commit 4b16bfff29
No known key found for this signature in database
GPG Key ID: FD90372AB8D98B4F
4 changed files with 10 additions and 5 deletions

View File

@ -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<typeof ToasterSonner>;

View File

@ -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<PropsWithChildren> = ({ child
<BusterNotifications.Provider value={{ ...value, openConfirmModal }}>
{children}
<Toaster />
<ConfirmModal {...confirmModalProps} />
{/* <ConfirmModal {...confirmModalProps} /> */}
</BusterNotifications.Provider>
);
};

View File

@ -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(),

View File

@ -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';
}
},
},
},