Skip to content

Commit

Permalink
chore: Add conditional rendering for TanStackRouterDevtools in RootCo…
Browse files Browse the repository at this point in the history
…mponent
  • Loading branch information
Jan-Eckerlein committed Oct 25, 2024
1 parent 697696c commit d278690
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 3 additions & 1 deletion src/routes/__root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ function RootComponent() {
<main className="w-full">
<Outlet />
<Toaster />
<TanStackRouterDevtools position="bottom-left" />
{import.meta.env.DEV && (
<TanStackRouterDevtools position="bottom-left" />
)}
</main>
</SidebarProvider>
);
Expand Down
3 changes: 0 additions & 3 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ const host = process.env.TAURI_DEV_HOST;
// https://vitejs.dev/config/
export default defineConfig(async () => ({
plugins: [TanStackRouterVite(), viteReact()],
esbuild: {
target: "node22",
},

test: {
environment: "jsdom", // Simulate a browser-like environment for testing
Expand Down

0 comments on commit d278690

Please sign in to comment.