MCPcopy Create free account
hub / github.com/esengine/esengine / _loadLocal

Method _loadLocal

packages/runtime-core/src/PluginLoader.ts:284–290  ·  view source on GitHub ↗
(config: PluginLoadConfig)

Source from the content-addressed store, hash-verified

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 => ({

Callers 1

_loadOneMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected