diff --git a/package-lock.json b/package-lock.json index 1795ca4a..54a215b3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -21,7 +21,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", @@ -3697,9 +3697,9 @@ } }, "node_modules/bippy": { - "version": "0.2.24", - "resolved": "https://registry.npmjs.org/bippy/-/bippy-0.2.24.tgz", - "integrity": "sha512-EZ8GSYSyPywsUmcOH2Kss/yhI8Auoku1WGKOK3/Ya7vukriRPJ2/8q+KApvh8LtX4KXNDBE5QD6furYz2Yei+Q==", + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/bippy/-/bippy-0.3.3.tgz", + "integrity": "sha512-l5zfUvHAKYg77SnevNS1yB4s+4CWaUIc+EuKdNfs+tm0HvkZG4F4SQ/RE44Dwm5P0lpi/v/JnhwRo9m647fThA==", "dependencies": { "@types/react-reconciler": "^0.28.9" }, diff --git a/package.json b/package.json index 6d32fb06..076385a3 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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", diff --git a/src/vite/plugin.tsx b/src/vite/plugin.tsx index 5f542c1c..666e0e67 100644 --- a/src/vite/plugin.tsx +++ b/src/vite/plugin.tsx @@ -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) {