mirror of
https://github.com/jehna/humanify.git
synced 2026-04-27 09:35:58 +03:00
[GH-ISSUE #350] [smart-rename] Add support for data-sentry-component / data-sentry-element / data-sentry-source-file (from @sentry/babel-plugin-component-annotate) #69
Labels
No labels
bug
enhancement
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/humanify#69
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @0xdevalias on GitHub (Mar 1, 2025).
Original GitHub issue: https://github.com/jehna/humanify/issues/350
Sentry has a feature that allows it to annotate built React components with the component name and source filename it was built from, to help provide better error logs. If these are present in the built output, this could be leveraged to extract those details and assist in restoring the original component name and/or source file name:
@sentry/babel-plugin-component-annotategithub.com/getsentry/sentry-javascript-bundler-plugins@ee73414589/packages/babel-plugin-component-annotate/src/index.ts (L40-L46)See Also
Edit: Also captured on this gist for posterity: