Files
bunext/dist/functions/bundler/pages-ssr-context-bundler.d.ts
T
2026-10-02 14:48:38 +01:00

19 lines
720 B
TypeScript

type RebuildParams = {
/**
* Force a context recreation even when the entry set is unchanged.
* Used by `fullRebuild` after it disposed the contexts.
*/
force?: boolean;
};
/**
* Single-flight SSR rebuild. Concurrent callers (each successful hydration
* rebuild triggers this, plus watcher/structural paths) join the in-flight
* rebuild instead of spawning overlapping esbuild builds.
*
* A fresh content change that lands while a rebuild is in flight is picked
* up by the next hydration rebuild cycle (each watcher event re-runs the
* hydration context rebuild, which re-enters this queue).
*/
export default function enqueueSSRRebuild(params?: RebuildParams): Promise<void>;
export {};