getsentry / getsentry/sentry-javascript

nextjs: Inject moduleMetadata on Turbopack builds

Aberta
#23,402 1 comentário 0 reações 1 responsável Reivindicada por @chargome Ver no GitHub
Linguagem predominante
TypeScript
Estrelas
8.7k
Forks
1.8k
Merge médio
1d 17h
PRs com merge (30d)
523

Descrição

`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.

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.