Skip to content

Commit

Permalink
Update bippy (#195)
Browse files Browse the repository at this point in the history
* Update bippy

* optimize deps update
  • Loading branch information
AlemTuzlak authored Feb 18, 2025
1 parent 53a40ca commit 6499e1a
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 6 deletions.
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

0 comments on commit 6499e1a

Please sign in to comment.