Skip to content

Conversation

@nicohrubec
Copy link
Member

sentryVitePlugin is typed to return VitePlugin[]. The problem is that in case the factory we use returns an array with only a single entry, unplugin will return a single plugin instead of an array. This can happen when the factory bails early and returns only the sentry-noop-plugin.

In other plugins this doesn't seem to be an issue, since we use any as the return type there.

@nicohrubec nicohrubec requested a review from Lms24 January 12, 2026 13:34
@nicohrubec nicohrubec marked this pull request as ready for review January 12, 2026 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants