Skip to main content

Module plugins

Module plugins 

Source
Expand description

Plugin system for framework-aware codebase analysis.

Plugins read JS, TS and JSON config files with the Oxc parser and walk the AST. They never run JavaScript. Each plugin implements the Plugin trait with static defaults (entry patterns, config file patterns, used exports) and reads config files for entries, dependencies and setup files.

Re-exports§

pub use registry::AggregatedPluginResult;
pub use registry::PluginRegistry;
pub use registry::PluginToolingDependencies;
pub use registry::PluginToolingEvidence;

Modules§

config_parser
AST-based config file parser utilities.
manifest_entries
Evaluation of external-plugin manifestEntries rules.
registry
Plugin registry: discovers active plugins, collects patterns, parses configs.

Structs§

FederationSource
What a Module Federation config declares, and where, for the trace output.
PathRule
A file-pattern rule with optional exclusion globs plus path-level or segment-level regex filters.
PluginConfigDiagnostic
One advisory about a config file a plugin read, before it becomes a fallow_config::WorkspaceDiagnostic.
PluginResult
Result of resolving a plugin’s config file.
PluginUsedExportRule
A used-export rule tagged with the plugin that contributed it.
ProvidedDependencyRule
A file-scoped dependency provider rule contributed by a framework plugin.
UsedExportNames
The plugin used-export rules of one plugin run, compiled for path lookups.
UsedExportRule
A used-export rule bound to a file-pattern rule.

Enums§

ExportCredits
Which plugin export credits the trace provenance records.
FederationSourceTarget
The thing a FederationSource names.
PluginConfigEffect
Which workspace diagnostic kind a plugin-stage advisory becomes.

Constants§

CONFIG_ONLY_EXPORT_NAMES
Export names that frameworks read as configuration, not as code.

Traits§

Plugin
A framework/tool plugin that contributes to dead code analysis.

Functions§

build_trace_provenance
Collect the trace provenance of one analysis, with the seeds of the peer-dependency closures.
federation_trace_provenance
Match the Module Federation sources of one analysis against the discovered files, for the trace output.
push_tooling_trace_credits
Record why the unused devDependency check credits each plugin tooling dependency, so --trace-dependency explains the credit instead of calling the dependency unused.
types_package_target
The package that a @types/ package types, by the DefinitelyTyped naming convention: @types/node types node, @types/scope__pkg types @scope/pkg. None for a name outside the @types/ scope.