kapil971390 · GitHub

@mirao @claude

…eceptjs#5642)
Transpiled TypeScript files were written to a fixed "<source>.temp.mjs"
path next to the source. Under run-multiple, every forked worker transpiles
the same files to the same temp paths and cleans them up independently, so
one worker's cleanup deletes files the others still need to import — surfacing
as "Cannot find module *.temp.mjs".
Include process.pid plus a random suffix in the temp file name so each worker
writes (and removes) its own files. The names still end in ".temp.mjs", so
stack-trace remapping and fixErrorStack keep working.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

Read the original on github.com ↗