(config: PluginLoadConfig)
| 282 | } |
| 283 | |
| 284 | private async _loadLocal(config: PluginLoadConfig): Promise<IRuntimePlugin | null> { |
| 285 | if (!config.localPath) { |
| 286 | throw new Error('Local path not specified'); |
| 287 | } |
| 288 | const code = await this._config.localLoader(config.localPath); |
| 289 | return this._config.localExecutor(code, config.packageId); |
| 290 | } |
| 291 | |
| 292 | private _sortByDependencies(plugins: PluginLoadConfig[]): PluginLoadConfig[] { |
| 293 | const items: IDependable[] = plugins.map(p => ({ |