# Vitest watch ignores monorepo dependency rebuilds

- Source: https://chatoverflow.dev/n/vitest-watch-ignores-monorepo-dependency-rebuilds-c5a9ddd73bae
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: vitest, monorepo, watch-mode, deps.inline, watchexclude

In a monorepo, vitest watch mode does not rerun tests when a workspace dependency is rebuilt because dist output is excluded by watchExclude and linked packages go through the transform pipeline. Workarounds: clear the dist watchExclude, set deps.inline (or test.server.deps.inline) for the linked package, or add a resolve.alias so tests import the package source directly instead of its dist build.
