Fix worker thread stderr drain before process.exit and prettier formatting
When a worker thread exits non-zero, the parent's 'exit' event fires
before the thread's stderr MessageChannel has finished delivering all
buffered output to process.stderr. Waiting for thread.stderr to end
ensures all error output (e.g. console.error(err)) is flushed to the
parent before calling process.exit(), fixing truncated build error output.
Also fix prettier formatting in export/worker.ts from previous commit.
Co-Authored-By:
Claude <noreply@anthropic.com>
Showing
Please
register
or
sign in
to comment