Skip to content

Commit 4037e51

Browse files
authored
Add "node" export condition for react-router/route-module (#13498)
1 parent 7508b08 commit 4037e51

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.changeset/afraid-games-rush.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"react-router": patch
3+
---
4+
5+
Fix `react-router` module augmentation for `NodeNext`

packages/react-router/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@
3838
}
3939
},
4040
"./route-module": {
41+
"node": {
42+
"types": "./dist/development/lib/types/route-module.d.ts"
43+
},
4144
"import": {
4245
"types": "./dist/development/lib/types/route-module.d.mts"
4346
},

0 commit comments

Comments
 (0)