refactor(turbopack-node): support execution by napi and worker_threads (#86266)
1. refactor `turbopack-node` to run webpack loaders via nodejs `worker_threads` 2. the `child_proccess` loader runner is keep in the crate feature to run unit tests in `turbopack-tests` or run `turbopack-cli` 3. if wanting to switch back to `child_proccess` loader runner, change features of `turbopack_node/worker_pool` to `turbopack_node/process_pool` in crate `next-swc-napi` 4. after switched to `worker_threads` loader runner, debugging with `CDP` (spawn child_process via `--inspect-brk`) doesn't work anymore, but you can use breakpoint debugging in IDE (like vscode) directly --------- Co-authored-by:Niklas Mischkulnig <4586894+mischnic@users.noreply.github.com> Co-authored-by:
Benjamin Woodruff <benjamin.woodruff@vercel.com>
Showing
File moved
This diff is collapsed.
File moved
This diff is collapsed.
Please
register
or
sign in
to comment