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::CheckedAliasPrefix;
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.
RequiredDependency
A package that a config needs installed, although no source file imports it. A tool loads the package by name, for example a TypeScript language service plugin, or the config sets a key that needs a companion package.
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.

Traits§

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

Functions§

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.