Skip to content
This repository was archived by the owner on Oct 12, 2023. It is now read-only.

Support passing execArgv to child process #325

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
3 changes: 3 additions & 0 deletions packages/cli-plugin-dev/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,9 @@ export class DevPlugin extends BasePlugin {
}
}

execArgv = execArgv.concat(process.execArgv);
execArgv.push('--conditions', 'ts-node');

this.child = fork(require.resolve('./child'), [JSON.stringify(options)], {
cwd: this.core.cwd,
env: {
Expand Down