fix variable shadow bug
This commit is contained in:
parent
1354e41375
commit
3744454076
|
|
@ -201,7 +201,7 @@ export class Hype<
|
||||||
let Layout = defaultLayout
|
let Layout = defaultLayout
|
||||||
const layoutPath = join(process.env.PWD ?? '.', `./src/pages/_layout.tsx`)
|
const layoutPath = join(process.env.PWD ?? '.', `./src/pages/_layout.tsx`)
|
||||||
if (await Bun.file(layoutPath).exists()) {
|
if (await Bun.file(layoutPath).exists()) {
|
||||||
let Layout = pageCache.get(layoutPath)
|
Layout = pageCache.get(layoutPath)
|
||||||
if (!Layout) {
|
if (!Layout) {
|
||||||
Layout = (await import(layoutPath + `?t=${Date.now()}`)).default
|
Layout = (await import(layoutPath + `?t=${Date.now()}`)).default
|
||||||
pageCache.set(layoutPath, Layout)
|
pageCache.set(layoutPath, Layout)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user