Files
repomix-mirror/bin
Kazuki Yamada e0971a1031 perf(cli): Propagate compile cache to child_process workers
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>
2026-03-21 01:27:03 +09:00
..