Skip to content

Commit

Permalink
disable worker threads for config check
Browse files Browse the repository at this point in the history
  • Loading branch information
ijjk committed Mar 4, 2021
1 parent 34262cb commit 1fcbf2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next/next-server/server/config-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export async function shouldLoadWithWebpack5(

export async function loadWebpackHook(phase: string, dir: string) {
let useWebpack5 = false
const worker: any = new Worker(__filename, { enableWorkerThreads: true })
const worker: any = new Worker(__filename, { enableWorkerThreads: false })
try {
useWebpack5 = Boolean(await worker.shouldLoadWithWebpack5(phase, dir))
} catch {
Expand Down

0 comments on commit 1fcbf2e

Please sign in to comment.