Files
bun.sh/packages/bun-framework-react/index.ts
Alistair Smith b516eedc67 fix mod
2025-09-18 17:57:46 -07:00

36 lines
814 B
TypeScript

import type { Framework } from "bun:app";
const framework: Framework = {
fileSystemRouterTypes: [
{
root: "pages",
clientEntryPoint: Bun.fileURLToPath(import.meta.resolve("./client.tsx")),
serverEntryPoint: Bun.fileURLToPath(import.meta.resolve("./server.tsx")),
extensions: [".tsx", ".jsx"],
style: "nextjs-pages",
layouts: true,
ignoreUnderscores: true,
},
],
staticRouters: ["public"],
serverComponents: {
separateSSRGraph: true,
serverRegisterClientReferenceExport: "registerClientReference",
serverRuntimeImportSource: "react-server-dom-bun/server",
},
reactFastRefresh: {
importSource: "react-refresh/runtime",
},
bundlerOptions: {
ssr: {
conditions: ["react-server"],
},
},
};
export default framework;