Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "react-router-devtools",
"description": "Devtools for React Router - debug, trace, find hydration errors, catch bugs and inspect server/client data with react-router-devtools",
"author": "Alem Tuzlak",
"version": "1.1.4",
"version": "1.1.5",
"license": "MIT",
"keywords": [
"react-router",
Expand Down Expand Up @@ -150,7 +150,7 @@
"@radix-ui/react-accordion": "^1.2.2",
"@radix-ui/react-select": "^2.1.5",
"beautify": "^0.0.8",
"bippy": "^0.2.24",
"bippy": "^0.3.3",
"chalk": "^5.4.1",
"clsx": "^2.1.1",
"date-fns": "^4.1.0",
Expand Down
16 changes: 16 additions & 0 deletions src/vite/plugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,22 @@ export const reactRouterDevTools: (args?: ReactRouterViteConfig) => Plugin[] = (
throw new Error("react-router-devtools plugin has to be before the react-router plugin!")
}
},
config(config) {
config.optimizeDeps = {
...config.optimizeDeps,
include: [
...(config.optimizeDeps?.include ?? []),
"react-router-devtools > beautify",
"react-router-devtools > react-diff-viewer-continued",
"react-router-devtools > react-d3-tree",
"react-router-devtools > classnames",
"react-router-devtools > @bkrem/react-transition-group",
"react-router-devtools/client",
"react-router-devtools/context",
"react-router-devtools/server",
],
}
},
async transform(code, id) {
const isRoot = id.endsWith("/root.tsx") || id.endsWith("/root.jsx")
if (!isRoot) {
Expand Down
Loading