sentry-javascript-bundler-plugins icon indicating copy to clipboard operation
sentry-javascript-bundler-plugins copied to clipboard

Supply correct return type for `sentryVitePlugin`

Open Lutymane opened this issue 6 months ago • 1 comments

The factory function actually returns an array of plugins which caused issues with plugin management with an expectation it returns a single plugin. It should be noted either in docs, or properly typed to avoid issues for other users.

https://github.com/getsentry/sentry-javascript-bundler-plugins/blob/9c564544b72caaea48205ce77ba6b4ddf0af09d2/packages/vite-plugin/src/index.ts#L77

Lutymane avatar Apr 16 '25 16:04 Lutymane

Hey @Lutymane, thanks for writing in – we'll have a look!

chargome avatar Apr 17 '25 14:04 chargome