Files
HiveGrid-Wireframes/03 Quellen und Referenzen/hivegrid-cloud/patches/@react-router__dev@7.18.1.patch
T

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`