File tree Expand file tree Collapse file tree 3 files changed +14
-3
lines changed
packages/react-router-dom Expand file tree Collapse file tree 3 files changed +14
-3
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " react-router-dom " : patch
3
+ ---
4
+
5
+ Change the ` react-router-dom/server ` import back to ` react-router-dom ` instead of ` index.ts `
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ import type {
29
29
Location ,
30
30
RouteObject ,
31
31
To ,
32
- } from "./index " ;
32
+ } from "react-router-dom " ;
33
33
import {
34
34
createPath ,
35
35
parsePath ,
@@ -38,7 +38,7 @@ import {
38
38
UNSAFE_DataRouterStateContext as DataRouterStateContext ,
39
39
UNSAFE_FetchersContext as FetchersContext ,
40
40
UNSAFE_ViewTransitionContext as ViewTransitionContext ,
41
- } from "./index " ;
41
+ } from "react-router-dom " ;
42
42
43
43
export interface StaticRouterProps {
44
44
basename ?: string ;
Original file line number Diff line number Diff line change 16
16
"skipLibCheck" : true ,
17
17
18
18
"outDir" : " ." ,
19
- "rootDir" : " ."
19
+ "rootDir" : " ." ,
20
+
21
+ // Needed for the more-strict pnpm setup, can be removed in v7 since we'll
22
+ // be collapsing the lifted server file into the main package export
23
+ "paths" : {
24
+ "react-router-dom" : [" ./index.tsx" ]
25
+ }
20
26
}
21
27
}
You can’t perform that action at this time.
0 commit comments