Doctor · Architecture

DOC0002Review a repeated export name

The same named export appears in two or more workspace files.
vite-doctor/corearchitecturewarnNo fix
workspace/dead-code/duplicate-exportsrc/core/internal/workspace-graph.ts

Why it happens

Doctor's workspace export index contains multiple owners for one name. Default exports and export-star markers are excluded. This is a name-level review signal; separate modules can legally export the same name, so it does not prove an ambiguous JavaScript import.

Fix

Review the files listed in the diagnostic. Consolidate duplicate implementations or choose more specific export names when they represent different concepts. If the repeated name is intentional, keep the exports and configure a scoped suppression.

Verify the fix

Rerun the workspace analysis after editing:

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