Plugin resolution engine with caching and auto-discovery. Resolves plugins from builtin, local (.i18n/plugins), and npm sources.
- Source
Classes
Members
(inner) defaultResolver :PluginResolver|null
Type:
- PluginResolver |
null
- Source
Methods
(inner) getResolver(cwdopt) → {PluginResolver}
Gets or creates the default resolver for the given working directory.
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
cwd | string | <optional> | process.cwd() |
- Source
Returns:
- Type:
- PluginResolver
(inner) loadPlugins(configopt, cwdopt) → {Object}
Convenience function to load plugins from config.
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
config | Object | <optional> | {} | |
cwd | string | <optional> | process.cwd() |
- Source
Returns:
- Type:
- Object