Skip to content

Commit

Permalink
port debug|inspect cli flag handling from jest-worker
Browse files Browse the repository at this point in the history
  • Loading branch information
pieh committed Jun 29, 2021
1 parent aeca3a6 commit 2bf3fac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/gatsby-worker/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@ export class WorkerPool<WorkerModuleExports = Record<string, unknown>> {
GATSBY_WORKER_ID: workerId.toString(),
GATSBY_WORKER_MODULE_PATH: workerPath,
},
// Suppress --debug / --inspect flags while preserving others (like --harmony).
execArgv: process.execArgv.filter(v => !/^--(debug|inspect)/.test(v)),
})

const workerInfo: IWorkerInfo<keyof WorkerModuleExports> = {
Expand Down

0 comments on commit 2bf3fac

Please sign in to comment.