pub struct DependencyTrace {
pub package_name: String,
pub imported_by: Vec<PathBuf>,
pub type_only_imported_by: Vec<PathBuf>,
pub used_in_scripts: bool,
pub is_used: bool,
pub import_count: usize,
pub sources: Vec<TraceSource>,
}Expand description
Result of tracing a dependency: where it is used.
Fields§
§package_name: StringThe dependency name being traced.
imported_by: Vec<PathBuf>Files that import this dependency.
type_only_imported_by: Vec<PathBuf>Files that import this dependency with type-only imports.
used_in_scripts: boolWhether the dependency is invoked from package.json scripts or CI configs.
is_used: boolWhether the dependency is used at all.
import_count: usizeTotal import count.
sources: Vec<TraceSource>The configs that declare this name as a Module Federation remote alias
under remotes, one per config. A remote alias is provided by a
remote container at runtime, not by an npm package. Absent when no
Federation config declares the name (issue #2796).
Trait Implementations§
Source§impl Debug for DependencyTrace
impl Debug for DependencyTrace
Auto Trait Implementations§
impl Freeze for DependencyTrace
impl RefUnwindSafe for DependencyTrace
impl Send for DependencyTrace
impl Sync for DependencyTrace
impl Unpin for DependencyTrace
impl UnsafeUnpin for DependencyTrace
impl UnwindSafe for DependencyTrace
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more