MCPcopy Create free account
hub / github.com/AlexErrant/Pentive / registerPluginService

Function registerPluginService

shared-dom/src/pluginManager.ts:22–32  ·  view source on GitHub ↗
(
	c: RenderContainer,
	plugin: Plugin,
)

Source from the content-addressed store, hash-verified

20}
21
22async function registerPluginService(
23 c: RenderContainer,
24 plugin: Plugin,
25): Promise<RenderContainer> {
26 const script = await blobToBase64(plugin.script)
27 // grep 2D96EE4E-61BA-4FCA-93C1-863C80E10A93
28 const exports = (await import(/* @vite-ignore */ script)) as {
29 default: RenderPluginExports
30 }
31 return getC(c, exports.default)
32}
33
34function getC(
35 c: RenderContainer,

Callers 1

registerPluginServicesFunction · 0.70

Calls 2

blobToBase64Function · 0.85
getCFunction · 0.70

Tested by

no test coverage detected