MCPcopy Index your code
hub / github.com/webpack/minimizer-webpack-plugin / getParallelism

Function getParallelism

test/parallel-option.test.js:51–57  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

49const workerPath = require.resolve("../src/minify");
50
51const getParallelism = () => {
52 if (typeof os.availableParallelism !== "undefined") {
53 return os.availableParallelism();
54 }
55
56 return os.cpus().length;
57};
58
59describe("parallel option", () => {
60 let compiler;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…