Skip to content

docs(js): Document automatic source maps and the new sourcemaps options - #20971

Open
timfish wants to merge 7 commits into
masterfrom
timfish/js-sourcemap-options
Open

timfish wants to merge 7 commits into
masterfrom
timfish/js-sourcemap-options

Conversation

@timfish

@timfish timfish commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

The bundler plugin turns on hidden source maps when the bundler setting is unset, uploads them, and removes them from the build output. Most framework SDKs do the same. This PR removes the setup steps that told users to turn on source maps and to delete them with filesToDeleteAfterUpload globs, and adds a short note on the default for each bundler and SDK.

It also documents the new sourcemaps.upload, sourcemaps.injectDebugIds and sourcemaps.delete options on the bundler plugin options page and the Next.js and SvelteKit build pages, and points sourcemaps.disable to them. It removes the filesToDeleteAfterUpload and deleteSourcemapsAfterUpload entries, because these options will be deprecated.

Three SDKs differ from the default. Nuxt sets the client source map value itself and the SDK reads it as turned off, so the examples keep sourcemap: { client: "hidden" }. Gatsby and Angular turn on source maps themselves, so the plugin keeps them and the examples show sourcemaps.delete: true.

Don't merge before the 11.18.0 release. The new options for Next.js, Nuxt, Nitro, Astro, TanStack Start, SolidStart and Gatsby ship in that version, and 11.18.0 is a placeholder until then. Migration guides and pages for older SDK versions are not changed.

IS YOUR CHANGE URGENT?

  • Urgent deadline (GA date, etc.): YYYY-MM-DD
  • Other deadline: YYYY-MM-DD
  • No deadline: Not urgent, can wait up to 1 week+

@vercel

vercel Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
sentry-docs Ready Ready Preview Nov 25, 2026 12:06pm UTC
1 Skipped Deployment
Project Deployment Actions Updated
develop-docs Ignored Ignored Preview Nov 25, 2026 12:06pm UTC

Request Review

@github-actions github-actions Bot added the Priority: Normal Docs review has no urgent deadline label Nov 25, 2026
@codeowner-assignment
codeowner-assignment Bot requested review from a team, alwx and antonis and removed request for a team November 25, 2026 11:44
@codeowner-assignment
codeowner-assignment Bot requested a review from a team November 25, 2026 11:53
@cursor

cursor Bot commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

Getting ready to monitor this change · Rollout details

Status Service Environment
⏳ Getting ready to monitor this change

This branch was successfully deployed

1 active deployment
Preview – sentry-docs — 15d09682 Deployed Nov 25, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Priority: Normal Docs review has no urgent deadline

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant