Fix build lags
This commit is contained in:
+16
-5
@@ -1,7 +1,18 @@
|
||||
type Params = {
|
||||
post_build_fn?: (params: {
|
||||
artifacts: any[];
|
||||
}) => Promise<void> | void;
|
||||
type RebuildParams = {
|
||||
/**
|
||||
* Force a context recreation even when the entry set is unchanged.
|
||||
* Used by `fullRebuild` after it disposed the contexts.
|
||||
*/
|
||||
force?: boolean;
|
||||
};
|
||||
export default function pagesSSRContextBundler(params?: Params): Promise<void>;
|
||||
/**
|
||||
* 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 {};
|
||||
|
||||
Reference in New Issue
Block a user