Doctor · dead code

DOC0006Review an unreachable value export

A named value export has no known reverse reference and its file is unreachable.
vite-doctor/coredead-codeinfoNo fix
workspace/dead-code/unused-exportsrc/core/internal/workspace-graph.ts

Why it happens

Doctor found neither a name-level import or call reference for this export nor a path from a recognized project entrypoint to its file. Default exports, export-star markers, and recognized type surfaces are excluded. Consumers outside the analyzed project are not evidence of reachability.

Fix

Remove an unused export, import it from reachable code, or expose its file through the correct package entrypoint. Check external consumers and host conventions before removing public APIs. Use a scoped suppression when the known use is outside Doctor's inventory.

Verify the fix

Rerun the workspace analysis after editing:

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