resolves errors in filerouter dynamic import

This commit is contained in:
2025-01-20 20:49:11 -07:00
parent fa73b0bdc0
commit 5de39d8573
5 changed files with 31 additions and 5 deletions

4
util/isRelativePath.ts Executable file
View File

@@ -0,0 +1,4 @@
export function isRelativePath(path: string) {
return !path.startsWith("/") &&
(path.startsWith("./") || path.startsWith("../"));
}