fix: keep runtime deps repair out of hot paths

This commit is contained in:
Peter Steinberger
2026-05-01 09:25:26 +01:00
parent e131eaecb5
commit 29ed5266bf
13 changed files with 31 additions and 13 deletions

View File

@@ -162,6 +162,7 @@ describe("ensurePluginRegistryLoaded", () => {
workspaceDir: "/resolved-workspace",
onlyPluginIds: ["demo-channel"],
throwOnLoadError: true,
installBundledRuntimeDeps: false,
}),
);
});

View File

@@ -175,7 +175,7 @@ export function ensurePluginRegistryLoaded(options?: {
},
{
throwOnLoadError: true,
installBundledRuntimeDeps: options?.installBundledRuntimeDeps,
installBundledRuntimeDeps: options?.installBundledRuntimeDeps ?? false,
...(hasExplicitPluginIdScope(requestedPluginIds) ||
shouldForwardChannelScope({ scope, scopedLoad }) ||
hasNonEmptyPluginIdScope(expectedChannelPluginIds)