Doctor · dead code

DOC0005Review an apparently unused dependency

A runtime dependency has no package reference in scanned source files.
vite-doctor/coredead-codeinfoNo fix
workspace/dead-code/unused-dependencysrc/core/internal/workspace-graph.ts

Why it happens

Doctor found no static import, re-export, or literal dynamic import for this runtime dependency. This is a heuristic: package scripts, runtime loading, host configuration, or source outside the scan can still use the package.

Fix

Check package scripts, configuration, dynamic loading, and excluded source before removing the dependency. Remove it from package.json only if it is unused. Keep a required dependency and configure a scoped suppression when its use cannot be represented in the source graph.

Verify the fix

Rerun the workspace analysis after editing:

pnpm vite-doctor . --analyses dead-code
  • workspace/dead-code/unused-dependency
Copyright © 2026