Skip to content

Commit

Permalink
Frozen @ Tue Jun 18 03:41:59 EDT 2024
Browse files Browse the repository at this point in the history
  • Loading branch information
Leask committed Jun 18, 2024
1 parent 8720883 commit 8903121
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/callosum.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ let [forked, workerCount] = [0, null];
// @todo: support workers in browser?
const availableParallelism = async (options) => {
if (!(workerCount || (workerCount = ~~options?.workerCount))) {
const { availableParallelism: paralle, cpus } = await import('node:os');
const { availableParallelism: paralle, cpus } = await import('os');
workerCount = paralle ? paralle() : cpus().length;
}
return workerCount;
Expand Down
2 changes: 2 additions & 0 deletions webpack.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ export default {
{ './lib/tape.mjs': '{}' },
{ './lib/vision.mjs': '{}' },
{ './lib/web.mjs': '{}' },
{ 'cluster': '{}' },
{ 'os': '{}' },
// { 'node:buffer': '{}' },
// { 'node:stream': '{}' },
// { 'node:fs': '{}' },
Expand Down

0 comments on commit 8903121

Please sign in to comment.