Skip to content

Commit

Permalink
filter out title execArgv to workers (#8719)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxpolun authored Dec 28, 2022
1 parent 10a56a7 commit 50f8cc2
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/core/workers/src/Worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,11 @@ export default class Worker extends EventEmitter {

for (let i = 0; i < filteredArgs.length; i++) {
let arg = filteredArgs[i];
if (
(arg === '-r' || arg === '--require') &&
filteredArgs[i + 1] === '@parcel/register'
) {
let isArgWithParam =
((arg === '-r' || arg === '--require') &&
filteredArgs[i + 1] === '@parcel/register') ||
arg === '--title';
if (isArgWithParam) {
filteredArgs.splice(i, 2);
i--;
}
Expand Down

0 comments on commit 50f8cc2

Please sign in to comment.