Repository navigation
Conversation
size-limit report 📦Compared: 93bc7af (PR test merge using develop at d5837c3) Against: 621a801 (develop) · base run #65856
|
Optional E2E testsSome optional checks were not successful. They do not block the merge. 1 not successful, 10 successful. See the run.
Successful checks
|
dead0f0 to
15c9e48
Compare
| } | ||
|
|
||
| incomingUserNextConfigObject.experimental = incomingUserNextConfigObject.experimental || {}; | ||
| incomingUserNextConfigObject.experimental.turbopackPluginRuntimeStrategy ??= 'workerThreads'; |
There was a problem hiding this comment.
l: if a user explicitly sets childProcesses here then this will still fail, should we add a build time warning in that case?
There was a problem hiding this comment.
I guess in general we could also think about if we should add a debug log when we do the override and it succeeds
There was a problem hiding this comment.
Good point instinct. I added a warning in 5923c0c
15c9e48 to
5dc59ad
Compare
5dc59ad to
f049969
Compare
With the default `childProcesses` strategy, Next.js runs Turbopack loaders in `node` processes and puts `process.execArgv` into their `NODE_OPTIONS`. On Bun, `execArgv` contains `--bun`, which Node.js rejects, so `bun --bun next build` fails or hangs. `withSentryConfig` always adds loaders, so on Bun it now sets `turbopackPluginRuntimeStrategy` to `workerThreads` for Next.js 16.2 and newer, unless the user set it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
5923c0c to
297e0ca
Compare
part of #24830
part of JS-3835
On Bun,
withSentryConfignow setsexperimental.turbopackPluginRuntimeStrategy: 'workerThreads'for Turbopack builds on Next.js 16.2 and newer, unless the user set it.Why
bun --bun next buildfails or hangs when the config has a Turbopack loader, andwithSentryConfigalways adds one. Next.js runs loaders innodeprocesses and putsprocess.execArgvinto theirNODE_OPTIONS. On Bun, that contains--bun, which Node.js rejects.Known issues
applicationKeyis set. Bun 1.4 works.