Replace jest-worker with custom worker pool
Replace the vendored jest-worker with a purpose-built pool in
lib/worker/: lazy spawning, boot throttling, per-worker concurrency,
crash recovery and graceful shutdown, for both child processes and
worker threads. Build, export, type-check, the dev server, the
dev-validation worker and the 'use cache' probe pool use it.
Prerender early exit now throws back to the build instead of exiting
inside the worker; the CLI prints the message unchanged and deferred
Turbopack warnings still follow it. Calls whose arguments fail to
serialize, and workers whose module fails to load, reject their calls
with the real error instead of wedging or crashing the pool. Leftover
jest-worker references are removed and the Turbopack server NFT prunes
the worker child entrypoints outside standalone builds.
Co-authored-by:
Tobias Koppers <1365881+sokra@users.noreply.github.com>
Showing
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Please
register
or
sign in
to comment