Constructs a new PluginLoader instance.
The configuration for this instance.
The logger to use.
Activates plugin loading/patching by hooking into the require method.
Deactivates the plugin loader, preventing additional plugins from getting loaded or applied, as well as unpatching any modules for which plugins specified an unpatching method.
Separates the internal file path from the name of a module in a module string, returning both (or just the name if it's the main module).
The module string; in the form of either ${module}
or
${module}/${relPath}
Adds a search path for plugin modules. Intended for testing purposes only.
The path to add.
Generated using TypeDoc
A class providing functionality to hook into module loading and apply plugins to enable tracing.