devtools/packages/devtools-vite
Alem Tuzlak 53805408af
chore: upgrade Vitest to v4 (#497)
* ci: stop Release test:lib flakes from runner overload

Release runs nx run-many across every package at nx.json parallel: 5.
That oversubscribes GitHub-hosted runners and flakes two test:lib jobs:

- @tanstack/devtools-ui: default 5s timeout on Solid + goober mounts
- @tanstack/devtools: vitest worker RPC stall (onTaskUpdate)

PR already caps NX_PARALLEL at 3 (#478). Apply the same cap to Release,
and raise the 30s test/hook timeouts on the remaining heavy UI packages.

* chore: upgrade Vitest to v4

Bump vitest from 3.2.4 to 4.1.10. Vitest 4 replaces the 60s
onTaskUpdate RPC timeout that failed Release after every
@tanstack/devtools test had already passed.

Migrate defineWorkspace to test.projects. Turn off Solid HMR in
tests so the module runner does not load /@solid-refresh. Update
mocks and timers that Vitest 4 types or isolates differently.
History 2026-08-12 16:20:22 +02:00
..
bin ci: Version Packages (#380) 2026-03-11 14:39:21 +01:00
skills/devtools-vite-plugin refactor(devtools-vite): migrate from Babel to oxc-parser + MagicString (#397) 2026-05-13 16:13:22 +02:00
src feat: add @tanstack/devtools-rspack (1:1 Vite parity) + shared @tanstack/devtools-bundler-core (#484) 2026-07-22 13:44:57 +02:00
tests chore: upgrade Vitest to v4 (#497) 2026-08-12 16:20:22 +02:00
CHANGELOG.md ci: Version Packages (#487) 2026-07-22 14:51:32 +02:00
eslint.config.js Feat/vite plugin (#53) 2025-08-21 14:26:14 +02:00
package.json ci: Version Packages (#487) 2026-07-22 14:51:32 +02:00
README.md Feat/vite plugin (#53) 2025-08-21 14:26:14 +02:00
tsconfig.docs.json Feat/vite plugin (#53) 2025-08-21 14:26:14 +02:00
tsconfig.json Feat/vite plugin (#53) 2025-08-21 14:26:14 +02:00
vite.config.ts docs: correct local relative links (#282) 2025-12-05 22:38:56 +11:00

@tanstack/devtools-vite

This package is still under active development and might have breaking changes in the future. Please use it with caution.

General Usage

The @tanstack/devtools-vite package is designed to work with Vite projects. Plug it into your plugins array:

import { devtools } from '@tanstack/devtools-vite'

export default {
  plugins: [
    // Important to include it first!
    devtools(),
    ... //rest of the plugins
  ],
}