feat(vue): Export Vue exception capture helper - #24586
vansh-nagar wants to merge 3 commits into
Conversation
Co-Authored-By: OpenAI/ChatGPT <codex@openai.com>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Want reviews to match your repository better? Bugbot Learning can learn team-specific rules from PR activity. A team admin can enable Learning in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit f52f52b. Configure here.
Co-Authored-By: OpenAI Codex <codex@openai.com>
Co-Authored-By: OpenAI Codex <codex@openai.com>
|
👋 @nicohrubec, @s1gr1d — Please review this PR when you get a chance! |
|
hey @vansh-nagar thanks for opening this PR! do you need this new helper yourself, or did you pick up the issue because it was still open? |
|
Thanks for checking. I picked this up because the issue was still open; I do not currently need the helper in my own project. If the use case is no longer something you want to support, I am happy to close it. Otherwise I can adjust the implementation to match the API you would prefer. |
|
I picked it up because the issue was still open; I do not need the helper for a private project. I verified the requested public export and tests against the current codebase. If the API direction has changed since the issue was opened, I am happy to adjust the PR. |

Exports
captureVueExceptionfrom@sentry/vuetogether with itsViewModeltype. The helper applies the same component metadata and mechanism data as the automatic Vue handler, but captures synchronously so anonErrorCapturedboundary can call it insidewithScopewithout losing per-error scope data across a timer.The automatic application handler still defers capture to the next event loop and now shares the metadata-building path with the public helper.
Validated with the focused 14-test Vue error-handler suite, the Vue dependency-aware type build, and type-aware package lint.
Fixes #11471