Skip to content
Source
Sign inSign up
TanStack/devtools

fix: issue with console piping and https server resolutions #343

MergedAlemTuzlakmerged 3 commits intomain fromrefs/pull/343/headmerged by AlemTuzlak View on GitHub

Showing 10 changed files with 53 additions and 6 deletions (loading 7).

x
0 of 10 viewed, 10 left
6 additions and 0 deletions.changeset/fresh-bars-matter.mdAdded
View file
@@ -0,0 +1,6 @@
+---
+'@tanstack/devtools-vite': patch
+'@tanstack/devtools-event-bus': patch
+---
+​
+fix issues with https servers and console piping
46 additions and 6 deletionspackages/devtools-vite/src/plugin.tsModified
View file
@@ -21,7 +21,10 @@
import type { ServerResponse } from 'node:http'
import type { Plugin } from 'vite'
import type { EditorConfig } from './editor'
-import type { ServerEventBusConfig } from '@tanstack/devtools-event-bus/server'
+import type {
+ HttpServerLike,
+ ServerEventBusConfig,
+} from '@tanstack/devtools-event-bus/server'
​
export type ConsoleLevel = 'log' | 'warn' | 'error' | 'info' | 'debug'
​
@@ -113,6 +116,8 @@
​
let devtoolsFileId: string | null = null
let devtoolsPort: number | null = null
+ let devtoolsHost: string | null = null
+ let devtoolsProtocol: 'http' | 'https' | null = null
​
return [