getsentry / getsentry/sentry-javascript

nextjs: Inject moduleMetadata on Turbopack builds

未關閉
#23,402 1 則留言 0 個 reaction 已指派 1 人 已被 @chargome 認領 在 GitHub 檢視
主要語言
TypeScript
星號
8.7k
分支
1.8k
平均合併
1 天 17 小時
30 天內合併 PR
523

描述

`moduleMetadata` only reaches the webpack plugin. On Turbopack builds it has no effect — #23372 added a build-time warning and documented it as webpack-only rather than leaving it a silent no-op.

The Turbopack loader (`moduleMetadataInjectionLoader`) already does the injection, but hardcodes the `applicationKey` payload. To close the gap: merge arbitrary metadata alongside the `applicationKey` tag, resolve the `ModuleMetadataCallback` form (`releaseName` is already resolved in `getFinalConfigObject.ts` and needs threading through), and widen the loader gate to `applicationKey || moduleMetadata`. Then drop the warning and the JSDoc note.

Touches the default bundler path for Next.js 16+, so it wants e2e coverage.

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。