ensureRuntimeHost
Nodepod API / src / ensureRuntimeHost
Function: ensureRuntimeHost()
Section titled “Function: ensureRuntimeHost()”ensureRuntimeHost():
Promise<RuntimeHost>
Defined in: src/host/runtime-host.ts:63
Resolve a RuntimeHost after async chunk init. vite-plugin-top-level-await
wraps chunks in async IIFEs, so browser-host’s
globalThis.__NODEPOD_CREATE_BROWSER_HOST__ = ... can land a tick after
static imports finish. Headless callers that already setRuntimeHost return
immediately.
Returns
Section titled “Returns”Promise<RuntimeHost>