(config: PluginLoadConfig)
| 275 | } |
| 276 | |
| 277 | private async _loadNpm(config: PluginLoadConfig): Promise<IRuntimePlugin | null> { |
| 278 | const module = await import(/* @vite-ignore */ config.packageId); |
| 279 | const exportName = config.exportName || 'default'; |
| 280 | const plugin = module[exportName] as IRuntimePlugin; |
| 281 | return plugin?.manifest ? plugin : null; |
| 282 | } |
| 283 | |
| 284 | private async _loadLocal(config: PluginLoadConfig): Promise<IRuntimePlugin | null> { |
| 285 | if (!config.localPath) { |