Skip to content

Commit

Permalink
fix: pass CLI options to the worker
Browse files Browse the repository at this point in the history
  • Loading branch information
mizdra committed Mar 22, 2022
1 parent c519475 commit 73475a5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cli/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ export async function run(options: Options) {
// ref: https://github.com/chalk/supports-color/issues/97, https://github.com/nodejs/node/issues/26946
FORCE_HYPERLINK: terminalLink.isSupported ? '1' : '0',
},
// NOTE: Pass CLI options (--experimental-import-meta-resolve, etc.) to the worker
execArgv: process.execArgv,
});
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const ProxiedCore = wrap<typeof SerializableCore>((nodeEndpoint as any)(worker));
Expand Down

0 comments on commit 73475a5

Please sign in to comment.