diff --git a/packages/mako/src/index.ts b/packages/mako/src/index.ts index 083ff02a6..3be93cfc9 100644 --- a/packages/mako/src/index.ts +++ b/packages/mako/src/index.ts @@ -16,16 +16,14 @@ export { BuildParams }; // ref: // https://github.com/vercel/next.js/pull/51883 function blockStdout() { - if (process.platform === 'darwin') { - // rust needs stdout to be blocking, otherwise it will throw an error (on macOS at least) when writing a lot of data (logs) to it - // see https://github.com/napi-rs/napi-rs/issues/1630 - // and https://github.com/nodejs/node/blob/main/doc/api/process.md#a-note-on-process-io - if ((process.stdout as any)._handle != null) { - (process.stdout as any)._handle.setBlocking(true); - } - if ((process.stderr as any)._handle != null) { - (process.stderr as any)._handle.setBlocking(true); - } + // rust needs stdout to be blocking, otherwise it will throw an error (on macOS at least) when writing a lot of data (logs) to it + // see https://github.com/napi-rs/napi-rs/issues/1630 + // and https://github.com/nodejs/node/blob/main/doc/api/process.md#a-note-on-process-io + if ((process.stdout as any)._handle != null) { + (process.stdout as any)._handle.setBlocking(true); + } + if ((process.stderr as any)._handle != null) { + (process.stderr as any)._handle.setBlocking(true); } }