mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-11 16:26:20 +00:00
Use __filename for worker instead
This commit is contained in:
@@ -109,7 +109,7 @@ async function processFiles(files) {
|
||||
await fsp.mkdir(program.outputDir, { recursive: true });
|
||||
const pool = Array.from(
|
||||
{ length: cpus().length },
|
||||
() => new Worker(process.argv[1])
|
||||
() => new Worker(__filename)
|
||||
);
|
||||
let i = 0;
|
||||
const jobs = [];
|
||||
|
||||
Reference in New Issue
Block a user