Skip to content

Commit b4f96c8

Browse files
committed
fix(turbopack-node): sass-loader failed via worker thread
1 parent f496ba6 commit b4f96c8

File tree

1 file changed

+3
-0
lines changed
  • turbopack/crates/turbopack-node/js/src/worker_threads

1 file changed

+3
-0
lines changed

turbopack/crates/turbopack-node/js/src/worker_threads/evaluate.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,9 @@ export const run = async (
121121
}
122122

123123
while (true) {
124+
// need await a micro task, or that if some some request rejected,
125+
// the error will be propergated to schedule threat, then causing panic
126+
await Promise.resolve()
124127
const msg_str = await binding.recvMessageInWorker(workerId)
125128

126129
const msg = JSON.parse(msg_str) as

0 commit comments

Comments
 (0)