Skip to content

feat(astro): Align options with shared build time options type #17396

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

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

s1gr1d
Copy link
Member

@s1gr1d s1gr1d commented Aug 12, 2025

As Astro currently mixes build-time and runtime options, the release option was omitted from the type. It's only possible to set this option with the unstable_sentryVitePluginOptions :(

Closes #17067

@s1gr1d s1gr1d requested review from mydea, Lms24 and chargome August 12, 2025 15:17
Copy link
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 24.16 kB added added
@sentry/browser - with treeshaking flags 22.73 kB added added
@sentry/browser (incl. Tracing) 39.87 kB added added
@sentry/browser (incl. Tracing, Replay) 77.99 kB added added
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 67.83 kB added added
@sentry/browser (incl. Tracing, Replay with Canvas) 82.69 kB added added
@sentry/browser (incl. Tracing, Replay, Feedback) 94.79 kB added added
@sentry/browser (incl. Feedback) 40.83 kB added added
@sentry/browser (incl. sendFeedback) 28.81 kB added added
@sentry/browser (incl. FeedbackAsync) 33.7 kB added added
@sentry/react 25.88 kB added added
@sentry/react (incl. Tracing) 41.86 kB added added
@sentry/vue 28.64 kB added added
@sentry/vue (incl. Tracing) 41.69 kB added added
@sentry/svelte 24.18 kB added added
CDN Bundle 25.66 kB added added
CDN Bundle (incl. Tracing) 39.76 kB added added
CDN Bundle (incl. Tracing, Replay) 75.82 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback) 81.27 kB added added
CDN Bundle - uncompressed 74.96 kB added added
CDN Bundle (incl. Tracing) - uncompressed 117.59 kB added added
CDN Bundle (incl. Tracing, Replay) - uncompressed 231.88 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 244.48 kB added added
@sentry/nextjs (client) 43.89 kB added added
@sentry/sveltekit (client) 40.32 kB added added
@sentry/node-core 47.99 kB added added
@sentry/node 147.02 kB added added
@sentry/node - without tracing 92.24 kB added added
@sentry/aws-serverless 103.67 kB added added

bundleSizeOptimizations,
unstable_sentryVitePluginOptions,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Sentry Vite Plugin Misinterprets Configuration Options

New top-level build-time options (e.g., org, project, authToken, sentryUrl, headers, telemetry, silent, errorHandler) are not destructured from the options object. This causes them to be incorrectly included in otherOptions, triggering a deprecation warning for 'additional options'. As a result, misleading warnings appear in production builds, despite these options being valid and used for Sentry Vite plugin configuration.

Fix in Cursor Fix in Web

*/
bundleSizeOptimizations?: BundleSizeOptimizationOptions;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Am I confused or did this disappear with the changes? 🤔

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is part of the shared type so it's possible to delete it here :)

bundleSizeOptimizations?: BundleSizeOptimizationsOptions;

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.

[Astro]: Align build-time bundler plugin options
2 participants