feat(nextjs): Inject manifest into client for turbopack builds#16902
feat(nextjs): Inject manifest into client for turbopack builds#16902
Conversation
Co-authored-by: Brice Friha <37577669+bricefriha@users.noreply.github.com>
size-limit report 📦
|
packages/nextjs/src/config/turbopack/constructTurbopackConfig.ts
Outdated
Show resolved
Hide resolved
packages/nextjs/src/config/turbopack/constructTurbopackConfig.ts
Outdated
Show resolved
Hide resolved
packages/nextjs/src/config/turbopack/constructTurbopackConfig.ts
Outdated
Show resolved
Hide resolved
Co-authored-by: Abhijeet Prasad <aprasad@sentry.io>
Co-authored-by: Abhijeet Prasad <aprasad@sentry.io>
There was a problem hiding this comment.
Bug: Turbopack Configuration Fails for Canary Versions
The isTurbopackSupported variable is incorrectly set to only isSupportedVersion before isSupportedCanary is defined. This prevents Turbopack configuration from being applied to supported Next.js canary versions (e.g., 15.3.0-canary.28+), despite them being compatible. It should be set to supportsClientInstrumentation (which correctly includes canary versions) after isSupportedCanary is calculated.
packages/nextjs/src/config/withSentryConfig.ts#L267-L268
sentry-javascript/packages/nextjs/src/config/withSentryConfig.ts
Lines 267 to 268 in 87910e6
Was this report helpful? Give feedback by reacting with 👍 or 👎
ref #16683
This PR injects the manifest into client bundles for turbopack.