feat(nuxt)!: Remove unstable_sentryBundlerPluginOptions - #23351
Conversation
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
size-limit report 📦
|
|
bugbot run |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
❌ 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']); |
There was a problem hiding this comment.
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)
Reviewed by Cursor Bugbot for commit 86d5913. Configure here.
| filesToDeleteAfterUpload, | ||
| rewriteSources: sourcemapsOptions.rewriteSources ?? normalizePath, | ||
| ...moduleOptions?.unstable_sentryBundlerPluginOptions?.sourcemaps, | ||
| resolveSourceMap: sourcemapsOptions.resolveSourceMap, |
There was a problem hiding this comment.
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.
Triggered by project rule: PR Review Guidelines for Cursor Bot
Reviewed by Cursor Bugbot for commit 86d5913. Configure here.


Removes
unstable_sentryBundlerPluginOptionsfrom 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