Skip to content

Commit a0b2402

Browse files
committed
add changelog entry
1 parent dd8aaa0 commit a0b2402

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,33 @@
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

0 commit comments

Comments
 (0)