We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6bbcebd commit b6b4d6fCopy full SHA for b6b4d6f
1 file changed
dev-packages/rollup-utils/rollupParallel.mjs
@@ -4,7 +4,7 @@
4
* Runs rollup builds in parallel for configs that export an array.
5
* Usage: node rollupParallel.mjs <config-path>
6
*/
7
-import { cpus } from 'os';
+import { availableParallelism } from 'os';
8
import { pathToFileURL } from 'url';
9
import { resolve } from 'path';
10
import { rollup } from 'rollup';
@@ -16,7 +16,7 @@ if (!configPath) {
16
}
17
18
const { default: configs } = await import(pathToFileURL(resolve(configPath)).href);
19
-const concurrency = cpus().length;
+const concurrency = availableParallelism();
20
const queue = [...configs];
21
let done = 0;
22
0 commit comments