resolves errors in filerouter dynamic import
This commit is contained in:
4
util/isRelativePath.ts
Executable file
4
util/isRelativePath.ts
Executable file
@@ -0,0 +1,4 @@
|
||||
export function isRelativePath(path: string) {
|
||||
return !path.startsWith("/") &&
|
||||
(path.startsWith("./") || path.startsWith("../"));
|
||||
}
|
Reference in New Issue
Block a user