UNPKG

astro

Version:

Astro is a modern site builder with web best practices, performance, and DX front-of-mind.

11 lines (10 loc) • 458 B
import type { RenderCollectorScope } from './scope.js'; /** * Installs (first-wins) an AsyncLocalStorage-backed render scope and returns * the installed scope. * * This module is the ONE static `node:async_hooks` import in core and must only * be imported by Node-only build code in `core/build/` — never by code that is * bundled into prerender, server, or adapter output. */ export declare function ensureAsyncRenderScope(): RenderCollectorScope;