From 7b68978960efad2005518d81601bca6963c66533 Mon Sep 17 00:00:00 2001 From: Alem Tuzlak Date: Fri, 30 Jan 2026 17:21:09 +0100 Subject: [PATCH] add piping docs --- docs/vite-plugin.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/docs/vite-plugin.md b/docs/vite-plugin.md index dc11584c..cde63117 100644 --- a/docs/vite-plugin.md +++ b/docs/vite-plugin.md @@ -180,6 +180,28 @@ export default { } ``` +### consolePiping + +Configuration for bidirectional console piping between client and server. When enabled, console logs from the client will appear in your terminal, and server logs will appear in the browser console. Defaults to enabled. + +```ts +import { devtools } from '@tanstack/devtools-vite' + +export default { + plugins: [ + devtools({ + consolePiping: { + // Whether to enable console piping (defaults to true) + enabled: true, + // Which console methods to pipe (defaults to all) + levels: ['log', 'warn', 'error', 'info', 'debug'], + } + }), + // ... rest of your plugins here + ], +} +``` + ## Features ### Go to source