Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions docs/vite-plugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down