mirror of
https://github.com/yamadashy/repomix.git
synced 2026-03-25 10:52:57 +01:00
The existing enableCompileCache() in bin/repomix.cjs only applied to the main process. Tinypool child_process workers (defaultAction) were spawned without compile cache because NODE_COMPILE_CACHE env var was not set. Capture the cache directory from enableCompileCache()'s return value and set it as NODE_COMPILE_CACHE env var so child_process workers inherit it at startup — before any ESM static imports are resolved. Note: worker_threads workers (fileProcess, securityCheck, calculateMetrics) already benefit from the main process's enableCompileCache() call since they share the same V8 isolate. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>