Files
HiveGrid-Wireframes/hivegrid-cloud/patches/@react-router__dev@7.11.0.patch
T

27 lines
1.0 KiB
Diff

diff --git a/dist/cli/index.js b/dist/cli/index.js
index 619658f414e244f653bb02347070f0998251ed75..0c92093e14a567330658a861755f999a4843f823 100644
--- a/dist/cli/index.js
+++ b/dist/cli/index.js
@@ -1156,7 +1156,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
index e5aaad7e59237b08967348a86dea0c739a06871b..b776ca6570aefd7f6987f8fb49c3971d8359da97 100644
--- a/dist/vite.js
+++ b/dist/vite.js
@@ -1167,7 +1167,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`