From 73475a51ed86cddea938cb8f7861869c81098251 Mon Sep 17 00:00:00 2001 From: mizdra Date: Tue, 22 Mar 2022 23:47:20 +0900 Subject: [PATCH] fix: pass CLI options to the worker --- src/cli/run.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cli/run.ts b/src/cli/run.ts index f2ed9688..27584603 100644 --- a/src/cli/run.ts +++ b/src/cli/run.ts @@ -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((nodeEndpoint as any)(worker));