Skip to content

Commit 7654784

Browse files
Merge pull request #3 from summer-2014/main
fix "Invalid operation path on windows"
2 parents 6274cf9 + 11f4a46 commit 7654784

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/core/route.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ function getRoutePathName(filePath: string, rootPath: string) {
1414
.replace(rootPath, "")
1515
.replace("[", "{")
1616
.replace("]", "}")
17+
.replaceAll("\\", "/")
1718
.replace("/route.ts", "");
1819
}
1920

0 commit comments

Comments
 (0)