Develop your app and node modules using plugins!
Use PluginDiscovery to auto-load plugins in your project and node_modules.
Write a plugin:
Scan the entire project, a directory, a .js/.jsx/.ts/.tsx file or just a single class or function:
const pluginDiscovery = ;await pluginDiscovery;await pluginDiscovery;await pluginDiscovery;pluginDiscovery;pluginDiscovery;
Individual plugins can also be manually added:
Access all plugins of the same type using their pluginkey:
You can also clear the plugin list, but it's unlikely that you will need to do this.
Scanning a project is done based on configuration in your package.json file.
You can specify a list of files to load (extensions are optional):
You can specify directories that contain your plugins,
in which case all .js/.jsx/.ts/.tsx files in those folders will be loaded:
Or you can do both