1import * as NodeModule from "node:module";
2import * as Effect from "effect/Effect";
3
4// Desktop enables this cache before loading the backend. Windows force-kills
5// the backend on quit, so persist it after startup instead of waiting for exit.
6// This is a no-op when caching is disabled, including normal dev launches.
7export const flushCompileCache = Effect.try(() => NodeModule.flushCompileCache()).pipe(
8 Effect.ignore,
9);