MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / loadPlugins

Function loadPlugins

dashboard/dev/main.tsx:95–108  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

93];
94
95async function loadPlugins() {
96 await Promise.all(
97 PLUGIN_ENTRIES.map(async (p) => {
98 try {
99 await p.load();
100 return;
101 } catch (err) {
102 // Rsbuild leaves a stack in `err`; keep the console line scannable.
103 console.warn(`[tracedecay dev] failed to load "${p.name}":`, err);
104 }
105 console.warn(`[tracedecay dev] plugin "${p.name}" has no loadable entry — skipping.`);
106 }),
107 );
108}
109
110// Fire-and-forget: registrations update the UI live via useRegistryVersion.
111loadPlugins();

Callers 1

main.tsxFile · 0.85

Calls 2

warnMethod · 0.80
loadMethod · 0.45

Tested by

no test coverage detected