getsentry / getsentry/sentry-javascript

nextjs: Inject moduleMetadata on Turbopack builds

オープン
#23,402 コメント 1 件 リアクション 0 件 担当者 1 名 @chargome が担当を希望しています GitHub で見る
主要言語
TypeScript
スター
8.7k
フォーク
1.8k
平均マージ
1日 17時間
マージ済み PR(30日)
515

説明

`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 を短くまとめたダイジェスト。