File tree Expand file tree Collapse file tree 3 files changed +3
-11
lines changed
Expand file tree Collapse file tree 3 files changed +3
-11
lines changed Original file line number Diff line number Diff line change 1515 "typings" : " dist/index.d.ts" ,
1616 "exports" : {
1717 "." : {
18- "node" : {
19- "types" : " ./dist/index.d.ts" ,
20- "module-sync" : " ./dist/index.mjs" ,
21- "default" : " ./dist/index.js"
22- },
2318 "import" : {
2419 "types" : " ./dist/index.d.mts" ,
2520 "default" : " ./dist/index.mjs"
Original file line number Diff line number Diff line change @@ -831,6 +831,7 @@ export const reactRouterVitePlugin: ReactRouterVitePlugin = (_config) => {
831831 // Pre-bundle router dependencies to avoid router duplicates.
832832 // Mismatching routers cause `Error: You must render this element inside a <Remix> element`.
833833 "react-router" ,
834+ "react-router/dom" ,
834835 // Check to avoid "Failed to resolve dependency: react-router-dom, present in 'optimizeDeps.include'"
835836 ...( hasDependency ( "react-router-dom" )
836837 ? [ "react-router-dom" ]
@@ -849,6 +850,7 @@ export const reactRouterVitePlugin: ReactRouterVitePlugin = (_config) => {
849850
850851 // see description for `optimizeDeps.include`
851852 "react-router" ,
853+ "react-router/dom" ,
852854 "react-router-dom" ,
853855 ] ,
854856 } ,
Original file line number Diff line number Diff line change 3939 }
4040 },
4141 "./types" : {
42- "import" : {
43- "types" : " ./dist/lib/types.d.mts"
44- },
45- "default" : {
46- "types" : " ./dist/lib/types.d.ts"
47- }
42+ "types" : " ./dist/lib/types.d.ts"
4843 },
4944 "./dom" : {
5045 "node" : {
You can’t perform that action at this time.
0 commit comments