diff --git a/packages/bun-framework-react/index.ts b/packages/bun-framework-react/index.ts index cd1c00a7b8..47571c92d0 100644 --- a/packages/bun-framework-react/index.ts +++ b/packages/bun-framework-react/index.ts @@ -1,13 +1,12 @@ -import type * as Bake from "bun:app"; -import { fileURLToPath } from "node:url"; +import type { Framework } from "bun:app"; -const framework: Bake.Framework = { +const framework: Framework = { fileSystemRouterTypes: [ { root: "pages", prefix: "/", - clientEntryPoint: fileURLToPath(import.meta.resolve("./client.tsx")), - serverEntryPoint: fileURLToPath(import.meta.resolve("./server.tsx")), + clientEntryPoint: Bun.fileURLToPath(import.meta.resolve("./client.tsx")), + serverEntryPoint: Bun.fileURLToPath(import.meta.resolve("./server.tsx")), extensions: [".tsx", ".jsx"], style: "nextjs-pages", layouts: true,