From 121725374c6aafda5d8641550b3709c02d758b7f Mon Sep 17 00:00:00 2001 From: Pedro Cattori Date: Tue, 19 Nov 2024 11:50:10 -0500 Subject: [PATCH] add export conditions for route module types (#12312) --- packages/react-router/package.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/react-router/package.json b/packages/react-router/package.json index 2767e1801c..958095b1a2 100644 --- a/packages/react-router/package.json +++ b/packages/react-router/package.json @@ -44,7 +44,12 @@ } }, "./route-module": { - "types": "./dist/production/lib/types/route-module.d.ts" + "import": { + "types": "./dist/production/lib/types/route-module.d.mts" + }, + "default": { + "types": "./dist/production/lib/types/route-module.d.ts" + } }, "./dom": { "node": {