File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33## Unreleased
44
5+ ### Important Changes
6+
7+ - ** feat(nextjs): Add Turbopack support for React component name annotation ([ #19XXX] ( https://github.com/getsentry/sentry-javascript/pull/19XXX ) )**
8+
9+ We added experimental support for React component name annotation in Turbopack builds. When enabled, JSX elements
10+ are annotated with ` data-sentry-component ` , ` data-sentry-element ` , and ` data-sentry-source-file ` attributes at build
11+ time. This enables searching Replays by component name, seeing component names in breadcrumbs, and performance
12+ monitoring — previously only available with webpack builds.
13+
14+ This feature requires Next.js 16+ and is currently behind an experimental flag:
15+
16+ ``` js
17+ // next.config.ts
18+ import { withSentryConfig } from ' @sentry/nextjs' ;
19+
20+ export default withSentryConfig (nextConfig, {
21+ _experimental: {
22+ turbopackReactComponentAnnotation: {
23+ enabled: true ,
24+ ignoredComponents: [' Header' , ' Footer' ], // optional
25+ },
26+ },
27+ });
28+ ```
29+
30+ ### Other Changes
31+
532- "You miss 100 percent of the chances you don't take. — Wayne Gretzky" — Michael Scott
633
734## 10.41.0
You can’t perform that action at this time.
0 commit comments