mirror of
https://github.com/TanStack/devtools.git
synced 2026-11-16 10:49:48 +00:00
fix(devtools-vite): inject the bus port into pre-bundled dependency chunks (#538)
Vite pre-bundles npm installs of @tanstack/react-devtools into chunks under node_modules/.vite/deps. Their ids do not contain "@tanstack/devtools", so connection-injection skipped them and __TANSTACK_DEVTOOLS_PORT__ stayed in the code. The browser then always dialed 4206, also when the server bus moved to another port. The examples link packages with workspace:*, and Vite does not pre-bundle linked packages, so the examples did not show the bug. Fixes #536
This commit is contained in:
parent
1a16d82be1
commit
7cb0a8d4ce
3 changed files with 21 additions and 1 deletions
Loading…
Add table
Add a link
Reference in a new issue