Skip to content

finding(build): DECLARED_LAZY_VIEWS_STILL_EAGER's metadata-admin entry says "eleven runtime values" — the runtime block has 25, and eleven is the TYPE-only block beneath it #6785

Description

@claude

Found while implementing objectui#6776. Observational: nothing is broken, no gate
fails, and the ledger entry itself is correct — only the reason text next to it is wrong.
Filed unassigned, recording only.

The claim

scripts/vite-declared-lazy-views.ts, in the docblock for
DECLARED_LAZY_VIEWS_STILL_EAGER's views/metadata-admin/index.ts entry:

  1. packages/app-shell/src/index.ts — the package barrel, which
    re-exports eleven runtime values from it (registerMetadataPreview,
    useMetadataClient, …). The console's entry imports that barrel.

What the file actually contains

Counted on b98352a15 (the commit the entry is measured on) and again on
c6732825d, both identical — packages/app-shell/src/index.ts has TWO adjacent
re-export blocks naming ./views/metadata-admin/index.js:

blocknamesholds the module eager?
export { … } (runtime, lines 308-334)25YES — a static edge each
export type { … } (lines 335-353)11NO — erased at build

So "eleven" is the count of the type-only block, attached to the word
"runtime". The three names the sentence gives as examples (registerMetadataPreview,
useMetadataClient, getMetadataInspector) are all from the 25-name RUNTIME block,
so the examples and the count come from different blocks.

Why it is worth correcting rather than shrugging at

The error points at the one block that provably cannot hold anything eager. A
export type re-export contributes zero static edges — it is gone before rolldown
sees the graph. An implementer who takes the docblock at its word goes looking for
eleven names to repoint and finds a block whose removal changes nothing, while the
25 runtime names that actually hold the 144-module chunk are not what was described.

It has already propagated once: objectui#6776's body carries the same sentence
verbatim ("eleven runtime values re-exported"), because that card was written from
this docblock. That is two readers of one wrong number, which is the shape the
surrounding file is otherwise careful about.

The two directions the ledger checks, the entry itself, and the 172,651 B / 144-module
measurement are all unaffected — only this sentence is.

Suggested repair

State both counts and their difference in kind, since the difference is the load-bearing
part: 25 runtime re-exports (each a static edge) plus 11 type-only re-exports (erased,
no edge). Same fix in objectui#6776's body if it is still open.

Generated by Claude Code


Generated by Claude Code

Metadata

Metadata

Assignees

No one assigned

    Labels

    domain:devxobjectui devx stream: fix lands on .github/, scripts/ or release pipeline — devx lane cross-repopm:queuepriority:p2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions