pub struct UnrenderedComponent {
pub path: PathBuf,
pub component_name: String,
pub framework: String,
pub reachable_via: Option<PathBuf>,
pub line: u32,
pub col: u32,
}Expand description
A Vue/Svelte single-file component (the default export of a .vue/.svelte
file) that is reachable in the module graph but rendered NOWHERE in the
project: no <Tag>, no :is/this= binding, no components/app.component
registration, no h()/auto-import use, and no script value-read. It survives
unused-file (a barrel re-export keeps it reachable) and unused-export
(the re-export counts as a use), yet no file actually instantiates it.
Fields§
§path: PathBufThe component file that is reachable but rendered nowhere.
component_name: StringThe component name. For "vue" / "svelte" / "astro" this is the SFC
file stem (PascalCase); for "angular" it is the component class name; for
"lit" it is the registered custom-element TAG (e.g. x-foo), not a file
stem. Use path to anchor the file across all frameworks.
framework: StringWhich framework this component belongs to: "vue", "svelte", "astro",
"angular", or "lit".
reachable_via: Option<PathBuf>A barrel/file that re-exports this component, kept for the remediation
trace (“reachable via X, rendered nowhere”). Absolute in memory,
serialized workspace-relative (like path); None when not determinable.
line: u321-based line number of the component (the file head; SFCs have no explicit default-export statement).
col: u320-based byte column offset.