mirror of https://github.com/buster-so/buster.git
supabase is its own chunk
This commit is contained in:
parent
d93508c575
commit
4b16bfff29
|
@ -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>;
|
||||
|
||||
|
|
|
@ -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>
|
||||
);
|
||||
};
|
||||
|
|
|
@ -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(),
|
||||
|
|
|
@ -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';
|
||||
}
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue