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
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 摘要。