The client runs on Node 20: the compile cache is used where Node has it (22.1 on) and skipped where it doesn't, so a built client loads on Node 20
of shared·pinch··Not checked
Version 65 · Files at version 66
1 file, 3 lines added, 2 removed.
--- a/client/avcs.ts
+++ b/client/avcs.ts
@@ -3,11 +3,12 @@
33// `abso help` lists the commands. `abso hook` is the Claude Code hook; it 44// loads only what it needs, since every edit pays for its start-up. 6−import { enableCompileCache } from "node:module";
6+import * as nodeModule from "node:module"; 88// Node keeps the compiled modules (TypeScript already stripped) in a cache in 99// the temp folder. Loading the hook's modules drops from about 55 ms to 11 ms. 10−enableCompileCache();
10+// Node 20 has no compile cache, and the built client runs there without one. 11+(nodeModule as { enableCompileCache?: () => unknown }).enableCompileCache?.(); 1213const argv = process.argv.slice(2);