fix(client-runtime): localize remote namespace dependency

This commit is contained in:
imccyu
2026-08-07 21:47:18 +08:00
parent ddd43ec371
commit 71ebeaa559
6 files changed
+10 -8

No files matched your search

+2 -2
View File
@@ -179,8 +179,8 @@ declare module 'cordis' {
}
}
/** Required services: the Remote root and Goal namespace, wire handle, and Client TypeRT registry. */
export const inject = ['remote', 'remote.goals', 'connection', 'typert']
/** Required services: the Remote root, wire handle, and Client TypeRT registry. */
export const inject = ['remote', 'connection', 'typert']
/** Mounts the browser runtime services and connection stream.
* @param ctx - Client Cordis context.
@@ -39,7 +39,6 @@ async function mount(): Promise<Bench> {
}
ctx.reflect.provide('connection', handle)
ctx.reflect.provide('remote', {})
ctx.reflect.provide('remote.goals', {})
await ctx.plugin(RuntimeClient).await()
return bench
}
@@ -33,7 +33,6 @@ async function mount(): Promise<Bench> {
}
ctx.reflect.provide('connection', handle)
ctx.reflect.provide('remote', {})
ctx.reflect.provide('remote.goals', {})
await ctx.plugin(RuntimeClient).await()
return bench
}