-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
feat(nuxt): Bump @sentry/vite-plugin and @sentry/rollup-plugin to 4.6.1
#18349
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@sentry/vite-plugin and @sentry/rollup-plugin to 4.6.1@sentry/vite-plugin and @sentry/rollup-plugin to 4.6.1
node-overhead report 🧳Note: This is a synthetic benchmark with a minimal express app and does not necessarily reflect the real-world performance impact in an application.
|
b5f6880 to
f3cf791
Compare
f3cf791 to
2c39c62
Compare
| project, | ||
| // same handling as in bundler plugins: https://github.com/getsentry/sentry-javascript-bundler-plugins/blob/05084f214c763a05137d863ff5a05ef38254f68d/packages/bundler-plugin-core/src/build-plugin-manager.ts#L102-L103 | ||
| project: Array.isArray(project) ? project[0] : project, | ||
| ...sentryConfig.unstable_sentryVitePluginOptions, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: Spread overwrites normalized project value
The SentryCli constructor carefully normalizes project from array to string on line 69, but then immediately spreads ...sentryConfig.unstable_sentryVitePluginOptions on line 70. Since unstable_sentryVitePluginOptions may contain its own project property (potentially an array), this spread overwrites the normalized value, defeating the purpose of the array-to-string conversion. The spread should come before the project property, not after.
| project, | ||
| // same handling as in bundler plugins: https://github.com/getsentry/sentry-javascript-bundler-plugins/blob/05084f214c763a05137d863ff5a05ef38254f68d/packages/bundler-plugin-core/src/build-plugin-manager.ts#L102-L103 | ||
| project: Array.isArray(project) ? project[0] : project, | ||
| ...sentryConfig.unstable_sentryVitePluginOptions, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: Spread overwrites normalized project value
The SentryCli constructor carefully normalizes project from array to string on line 69, but then immediately spreads ...sentryConfig.unstable_sentryVitePluginOptions on line 70. Since unstable_sentryVitePluginOptions may contain its own project property (potentially an array), this spread overwrites the normalized value, defeating the purpose of the array-to-string conversion. The spread should come before the project property, not after.
size-limit report 📦
|
#18270 bumps just the rollup plugin but we should bump both simultaneously.