diff --git a/src/index.tsx b/src/index.tsx index ab87f82..7343054 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -201,7 +201,7 @@ export class Hype< let Layout = defaultLayout const layoutPath = join(process.env.PWD ?? '.', `./src/pages/_layout.tsx`) if (await Bun.file(layoutPath).exists()) { - let Layout = pageCache.get(layoutPath) + Layout = pageCache.get(layoutPath) if (!Layout) { Layout = (await import(layoutPath + `?t=${Date.now()}`)).default pageCache.set(layoutPath, Layout)