Skip to content

Commit b1511bf

Browse files
committed
fix: include root "react-dom" module for optimization
1 parent 38bda69 commit b1511bf

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changeset/lemon-files-care.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@react-router/dev": patch
3+
---
4+
5+
include root "react-dom" module for optimization

packages/react-router-dev/vite/plugin.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -825,6 +825,7 @@ export const reactRouterVitePlugin: ReactRouterVitePlugin = (_config) => {
825825
"react",
826826
"react/jsx-runtime",
827827
"react/jsx-dev-runtime",
828+
"react-dom",
828829
"react-dom/client",
829830

830831
// Pre-bundle router dependencies to avoid router duplicates.

0 commit comments

Comments
 (0)