26 lines
716 B
TypeScript
26 lines
716 B
TypeScript
import { agentNative } from "@agent-native/core/vite";
|
|
import { reactRouter } from "@react-router/dev/vite";
|
|
import { defineConfig } from "vite";
|
|
|
|
const reactRouterPlugins = reactRouter as unknown as () => any[];
|
|
const agentNativePlugins = agentNative as unknown as (
|
|
options?: Parameters<typeof agentNative>[0],
|
|
) => any[];
|
|
export default defineConfig({
|
|
optimizeDeps: {
|
|
entries: [
|
|
"app/entry.client.tsx",
|
|
"app/root.tsx",
|
|
"app/components/layout/{Layout,Sidebar}.tsx",
|
|
"app/components/chat/ChatRouteContent.tsx",
|
|
"app/routes/{home,chat.$threadId}.tsx",
|
|
],
|
|
},
|
|
plugins: [
|
|
...reactRouterPlugins(),
|
|
...agentNativePlugins({
|
|
ssrStubs: ["shiki"],
|
|
}),
|
|
],
|
|
});
|