Fix memory leak in dev server
This commit is contained in:
+5
-3
@@ -5,10 +5,12 @@
|
||||
*/
|
||||
export declare function restartWatcher(): void;
|
||||
/**
|
||||
* True when the watcher was last (re)created long enough ago that the
|
||||
* watchdog should consider re-creating it again.
|
||||
* Called periodically by the dev server. Re-creates the watcher only when it
|
||||
* failed to report the probe written on the previous tick, i.e. when it went
|
||||
* stale. A healthy watcher is left alone: re-creating it rescans the whole
|
||||
* project tree.
|
||||
*/
|
||||
export declare function watcherRestartAvailable(): boolean;
|
||||
export declare function watcherWatchdogTick(): void;
|
||||
export default function watcherEsbuildCTX(params?: {
|
||||
pages_snapshot?: string;
|
||||
}): Promise<void>;
|
||||
|
||||
Reference in New Issue
Block a user