25 lines
834 B
Diff
25 lines
834 B
Diff
diff --git a/dist/cli/index.js b/dist/cli/index.js
|
|
--- a/dist/cli/index.js
|
|
+++ b/dist/cli/index.js
|
|
@@ -1255,7 +1255,7 @@ function getRouteAnnotations({
|
|
type Module = typeof import("${routeImportSource}")
|
|
|
|
type Info = GetInfo<{
|
|
- file: "${file}",
|
|
+ file: "${file.replace(/\\/g, "/")}",
|
|
module: Module
|
|
}>
|
|
` + "\n\n" + generate(matchesType).code + "\n\n" + import_dedent.default`
|
|
diff --git a/dist/vite.js b/dist/vite.js
|
|
--- a/dist/vite.js
|
|
+++ b/dist/vite.js
|
|
@@ -1273,7 +1273,7 @@ function getRouteAnnotations({
|
|
type Module = typeof import("${routeImportSource}")
|
|
|
|
type Info = GetInfo<{
|
|
- file: "${file}",
|
|
+ file: "${file.replace(/\\/g, "/")}",
|
|
module: Module
|
|
}>
|
|
` + "\n\n" + generate(matchesType).code + "\n\n" + import_dedent.default`
|