Skip to content
Merged
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 apps/oxfmt/src-js/cli/worker-proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ export async function initExternalFormatter(numThreads: number): Promise<string[
// Not sure why, but when using `worker_threads`,
// calls from NAPI (CLI) -> worker threads -> NAPI (prettier-plugin-oxfmt) causes a hang...
runtime: "child_process",
// When setting the `runtime: child_process`,
// `process.env` is not inherited (likely a bug), so it needs to be explicitly specified.
env: process.env as Record<string, string>,
});

return resolvePlugins();
Expand Down
Loading