| 93 | ]; |
| 94 | |
| 95 | async 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. |
| 111 | loadPlugins(); |