File tree 3 files changed +8
-2
lines changed
packages/react-router-dev/vite
3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @react-router/dev " : patch
3
+ ---
4
+
5
+ Properly resolve Windows file paths to scan for Vite's dependency optimization when using the ` unstable_optimizeDeps ` future flag.
Original file line number Diff line number Diff line change 330
330
- willemarcel
331
331
- williamsdyyz
332
332
- willsawyerrrr
333
+ - wkovacs64
333
334
- xavier-lc
334
335
- xcsnowcity
335
336
- yionr
Original file line number Diff line number Diff line change @@ -800,9 +800,9 @@ export const reactRouterVitePlugin: ReactRouterVitePlugin = () => {
800
800
optimizeDeps : {
801
801
entries : ctx . reactRouterConfig . future . unstable_optimizeDeps
802
802
? [
803
- ctx . entryClientFilePath ,
803
+ vite . normalizePath ( ctx . entryClientFilePath ) ,
804
804
...Object . values ( ctx . reactRouterConfig . routes ) . map ( ( route ) =>
805
- path . join ( ctx . reactRouterConfig . appDirectory , route . file )
805
+ resolveRelativeRouteFilePath ( route , ctx . reactRouterConfig )
806
806
) ,
807
807
]
808
808
: [ ] ,
You can’t perform that action at this time.
0 commit comments