Remove Babel from React component annotation

Open
#24,415 1 comment 0 reactions 1 assignee View on GitHub

Nobody has claimed this yet.

Assessment

This issue has not been assessed yet.

Description

The standalone @sentry/babel-plugin-component-annotate package is already removed, but its implementation is inlined in @sentry/bundler-plugins, keeping @babel/core as a runtime dependency.

  • Babel remains the annotation backend for Webpack, Vite 7, Vite 8 parser/fallback cases, and the Next.js Turbopack loader.
  • Vite 8 has a faster non-Babel transform, but it intentionally falls back to Babel when parsing is unavailable or fails.
  • The remaining blocker is parser/transform parity across those paths before the Babel backend, subpath export, and dependency can be removed.

Reported by Dominik Dorfmeister.

Action taken on behalf of Charly Gomez.

Dominant language
TypeScript
Stars
8.7k
Forks
1.9k
Avg merge
1d 18h
Merged PRs (30d)
543

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from getsentry/sentry-javascript

All issues in getsentry/sentry-javascript

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.