Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions lib/WorkerHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,13 @@ function resolveForkOptions(opts) {
}
}

// if the host process is running using Yarn PnP we should start the
// child processes in the same mode
if (process.versions.pnp) {
var pnpPath = require.resolve('pnpapi');
execArgv.push(`--require ${pnpPath}`);
}

return assign({}, opts, {
forkArgs: opts.forkArgs,
forkOpts: assign({}, opts.forkOpts, {
Expand Down