Skip to content

ensureRuntimeHost

Nodepod API


Nodepod API / src / 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.

Promise<RuntimeHost>