From 5d67ecfd2412f38a6649d1bcf44ad5aab23d5c16 Mon Sep 17 00:00:00 2001 From: MythEclipse Date: Sun, 17 May 2026 22:57:46 +0700 Subject: [PATCH] fix: pass parent process.execArgv to Worker to support TSX/ESM loader in worker threads --- src/moderation/aiAnalyzer.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/moderation/aiAnalyzer.ts b/src/moderation/aiAnalyzer.ts index e4f19aa..2077e4f 100644 --- a/src/moderation/aiAnalyzer.ts +++ b/src/moderation/aiAnalyzer.ts @@ -146,6 +146,7 @@ async function runAnalysisInWorker( return new Promise((resolve, reject) => { const worker = new Worker( new URL("./aiAnalysisWorker.ts", import.meta.url), + { execArgv: process.execArgv } ); worker.once("message", (response: AnalysisWorkerResponse) => {