fix: pass parent process.execArgv to Worker to support TSX/ESM loader in worker threads

This commit is contained in:
MythEclipse
2026-05-17 22:57:46 +07:00
parent b789655ce9
commit 5d67ecfd24
+1
View File
@@ -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) => {