fix(channels): keep lazy bundled discovery off staged deps

This commit is contained in:
Peter Steinberger
2026-04-29 20:19:28 +01:00
parent 8b8bba9621
commit e3b7b4cf63

View File

@@ -551,7 +551,9 @@ function getBundledChannelPluginForRoot(
loadContext.pluginLoadInProgressIds.add(id);
try {
const metadata = resolveBundledChannelMetadata(id, rootScope);
const plugin = entry.loadChannelPlugin() as ChannelPlugin | undefined;
const plugin = entry.loadChannelPlugin({ installRuntimeDeps: false }) as
| ChannelPlugin
| undefined;
if (!plugin) {
loadContext.lazyPluginsById.set(id, null);
return undefined;
@@ -671,7 +673,7 @@ function getBundledChannelSetupSecretsForRoot(
}
try {
const secrets =
entry.loadSetupSecrets?.() ??
entry.loadSetupSecrets?.({ installRuntimeDeps: false }) ??
getBundledChannelSetupPluginForRoot(id, rootScope, loadContext)?.secrets;
loadContext.lazySetupSecretsById.set(id, secrets ?? null);
return secrets;