webpack-loader-worker runs the following loaders in node.js
worker_threads pool. It works as similar to thread-loader, but only supports native node.js worker threads. (node.js >= 12. Version below 12 are untested)
npm install --save-dev webpack-loader-worker
Put this loader in front of other loaders. The following loaders run in a worker pool. Loaders running in a thread pool are limited, does not have full access to webpack loader's context.
While this module is NOT officially affiliated, it relies on a lot of prior art from
thread-loader. You may notice some similar logic, and it is expected.