Skip to content

feat(nuxt)!: Remove unstable_sentryBundlerPluginOptions - #23351

Draft
chargome wants to merge 1 commit into
charlygomez/js-3355-core-add-build-time-options-for-bundler-plugin-parityfrom
charlygomez/js-3356-nuxt-remove-unstable_sentrybundlerpluginoptions
Draft

feat(nuxt)!: Remove unstable_sentryBundlerPluginOptions#23351
chargome wants to merge 1 commit into
charlygomez/js-3355-core-add-build-time-options-for-bundler-plugin-parityfrom
charlygomez/js-3356-nuxt-remove-unstable_sentrybundlerpluginoptions

Conversation

@chargome

@chargome chargome commented Aug 12, 2026

Copy link
Copy Markdown
Member

Removes unstable_sentryBundlerPluginOptions from the Nuxt module options.

Everything it exposed is reachable as a top-level build option. Adds a build-time warning for plain JS configs, where TypeScript cannot catch the removed key.

closes #23340

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@linear-code

linear-code Bot commented Aug 12, 2026

Copy link
Copy Markdown

JS-3356

@chargome chargome self-assigned this Aug 12, 2026
@github-actions

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 30.34 kB +1.69% +503 B 🔺
@sentry/browser - with treeshaking flags 28.51 kB +1.72% +480 B 🔺
@sentry/browser (incl. Tracing) 48.56 kB +2.79% +1.32 kB 🔺
@sentry/browser (incl. Tracing + Span Streaming) 48.57 kB +2.76% +1.3 kB 🔺
@sentry/browser (incl. Tracing, Profiling) 51.45 kB -1.06% -549 B 🔽
@sentry/browser (incl. Tracing, Replay) 87.97 kB +1.6% +1.38 kB 🔺
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 77.35 kB +1.77% +1.34 kB 🔺
@sentry/browser (incl. Tracing, Replay with Canvas) 92.69 kB +1.55% +1.41 kB 🔺
@sentry/browser (incl. Tracing, Replay, Feedback) 105.37 kB +1.37% +1.42 kB 🔺
@sentry/browser (incl. Feedback) 47.66 kB +1.12% +524 B 🔺
@sentry/browser (incl. sendFeedback) 35.16 kB +1.42% +492 B 🔺
@sentry/browser (incl. FeedbackAsync) 40.31 kB +1.35% +535 B 🔺
@sentry/browser (incl. Metrics) 31.31 kB +1.3% +401 B 🔺
@sentry/browser (incl. Logs) 31.58 kB +1.39% +432 B 🔺
@sentry/browser (incl. Metrics & Logs) 32.25 kB +1.38% +438 B 🔺
@sentry/react 32.13 kB +1.61% +508 B 🔺
@sentry/react (incl. Tracing) 50.77 kB +2.54% +1.26 kB 🔺
@sentry/vue 35.35 kB +1.23% +428 B 🔺
@sentry/vue (incl. Tracing) 50.51 kB +2.59% +1.27 kB 🔺
@sentry/svelte 30.37 kB +1.72% +511 B 🔺
CDN Bundle 31.64 kB -0.73% -230 B 🔽
CDN Bundle (incl. Tracing) 48.89 kB +2.85% +1.35 kB 🔺
CDN Bundle (incl. Logs, Metrics) 33.86 kB +1.35% +451 B 🔺
CDN Bundle (incl. Tracing, Logs, Metrics) 50.85 kB +3.89% +1.9 kB 🔺
CDN Bundle (incl. Replay, Logs, Metrics) 74.38 kB +2.24% +1.63 kB 🔺
CDN Bundle (incl. Tracing, Replay) 86.48 kB +1.53% +1.29 kB 🔺
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 88.34 kB +2.14% +1.84 kB 🔺
CDN Bundle (incl. Tracing, Replay, Feedback) 92.19 kB +1.3% +1.18 kB 🔺
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 94.16 kB +2.01% +1.85 kB 🔺
CDN Bundle - uncompressed 93.94 kB -0.72% -680 B 🔽
CDN Bundle (incl. Tracing) - uncompressed 146.76 kB +3.27% +4.64 kB 🔺
CDN Bundle (incl. Logs, Metrics) - uncompressed 100.34 kB +1.11% +1.1 kB 🔺
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 152.56 kB +4.43% +6.46 kB 🔺
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 229.28 kB +2.39% +5.34 kB 🔺
CDN Bundle (incl. Tracing, Replay) - uncompressed 266.02 kB +1.78% +4.65 kB 🔺
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 271.81 kB +2.44% +6.46 kB 🔺
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 279.72 kB +1.69% +4.64 kB 🔺
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 285.49 kB +2.32% +6.46 kB 🔺
@sentry/nextjs (client) 53.29 kB +2.32% +1.21 kB 🔺
@sentry/sveltekit (client) 48.98 kB +2.67% +1.27 kB 🔺
@sentry/core/server 65.56 kB +0.06% +33 B 🔺
@sentry/core/browser 51.91 kB +0.06% +30 B 🔺
@sentry/node 117.97 kB -1.89% -2.27 kB 🔽
@sentry/node/import (ESM hook with diagnostics-channel injection) 0 B added added
@sentry/node - without tracing 82.09 kB -1.91% -1.6 kB 🔽
@sentry/aws-serverless 91.5 kB -0.93% -853 B 🔽
@sentry/cloudflare (withSentry) - minified 214.07 kB -2.1% -4.58 kB 🔽
@sentry/cloudflare (withSentry) 528.89 kB -1.85% -9.96 kB 🔽
@sentry/browser - with treeshaking flags tracing without tracing 26.85 kB added added

View base workflow run

@chargome

Copy link
Copy Markdown
Member Author

bugbot run

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 86d5913. Configure here.

moduleOptions: SentryNuxtModuleOptions,
shouldDeleteFilesFallback?: { client: boolean; server: boolean },
): SentryVitePluginOptions | SentryRollupPluginOptions {
warnOnRemovedBuildOptions(moduleOptions, ['unstable_sentryBundlerPluginOptions']);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Removal warning fires twice

Low Severity

warnOnRemovedBuildOptions runs inside getPluginOptions, which a normal production Nuxt build invokes twice — once for the Vite plugin and once for the Nitro Rollup plugin. Users who still set unstable_sentryBundlerPluginOptions therefore see the same removal warning duplicated.

Additional Locations (2)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 86d5913. Configure here.

filesToDeleteAfterUpload,
rewriteSources: sourcemapsOptions.rewriteSources ?? normalizePath,
...moduleOptions?.unstable_sentryBundlerPluginOptions?.sourcemaps,
resolveSourceMap: sourcemapsOptions.resolveSourceMap,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Missing integration or E2E test

Low Severity

This feat PR only adds unit and type tests for the removal warning and option pass-through. Per the PR Review Guidelines for Cursor Bot testing conventions, feat PRs need at least one integration or E2E test; neither is present here. Flagged because it was mentioned in this rules file.

Fix in Cursor Fix in Web

Triggered by project rule: PR Review Guidelines for Cursor Bot

Reviewed by Cursor Bugbot for commit 86d5913. Configure here.

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.

nuxt: Remove unstable_sentryBundlerPluginOptions

1 participant