Skip to content

Commit 6499e1a

Browse files
authored
Update bippy (#195)
* Update bippy * optimize deps update
1 parent 53a40ca commit 6499e1a

File tree

3 files changed

+22
-6
lines changed

3 files changed

+22
-6
lines changed

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "react-router-devtools",
33
"description": "Devtools for React Router - debug, trace, find hydration errors, catch bugs and inspect server/client data with react-router-devtools",
44
"author": "Alem Tuzlak",
5-
"version": "1.1.4",
5+
"version": "1.1.5",
66
"license": "MIT",
77
"keywords": [
88
"react-router",
@@ -150,7 +150,7 @@
150150
"@radix-ui/react-accordion": "^1.2.2",
151151
"@radix-ui/react-select": "^2.1.5",
152152
"beautify": "^0.0.8",
153-
"bippy": "^0.2.24",
153+
"bippy": "^0.3.3",
154154
"chalk": "^5.4.1",
155155
"clsx": "^2.1.1",
156156
"date-fns": "^4.1.0",

src/vite/plugin.tsx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,22 @@ export const reactRouterDevTools: (args?: ReactRouterViteConfig) => Plugin[] = (
8686
throw new Error("react-router-devtools plugin has to be before the react-router plugin!")
8787
}
8888
},
89+
config(config) {
90+
config.optimizeDeps = {
91+
...config.optimizeDeps,
92+
include: [
93+
...(config.optimizeDeps?.include ?? []),
94+
"react-router-devtools > beautify",
95+
"react-router-devtools > react-diff-viewer-continued",
96+
"react-router-devtools > react-d3-tree",
97+
"react-router-devtools > classnames",
98+
"react-router-devtools > @bkrem/react-transition-group",
99+
"react-router-devtools/client",
100+
"react-router-devtools/context",
101+
"react-router-devtools/server",
102+
],
103+
}
104+
},
89105
async transform(code, id) {
90106
const isRoot = id.endsWith("/root.tsx") || id.endsWith("/root.jsx")
91107
if (!isRoot) {

0 commit comments

Comments
 (0)