Skip to content

updating multiple JS frameworks to and more detailed source map info #14454

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: master
Choose a base branch
from

Conversation

sfanahata
Copy link
Contributor

DESCRIBE YOUR PR

  • nuxt - add wizard and update walkthrough
  • browser JS - update walkthrough
  • sveltekit - add the wizard as an option, update walkthrough
  • solid start - add wizard and update walkthrough
  • tanstack - add manual instructions and update walkthrough
  • cloudflare - add wizard, show updated walkthrough

IS YOUR CHANGE URGENT?

Help us prioritize incoming PRs by letting us know when the change needs to go live.

  • Urgent deadline (GA date, etc.):
  • Other deadline:
  • None: Not urgent, can wait up to 1 week+

SLA

  • Teamwork makes the dream work, so please add a reviewer to your PRs.
  • Please give the docs team up to 1 week to review your PR unless you've added an urgent due date to it.
    Thanks in advance for your help!

PRE-MERGE CHECKLIST

Make sure you've checked the following before merging your changes:

  • Checked Vercel preview for correctness, including links
  • PR was reviewed and approved by any necessary SMEs (subject matter experts)
  • PR was reviewed and approved by a member of the Sentry docs team

Copy link

vercel bot commented Jul 24, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sentry-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 24, 2025 10:04pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
develop-docs ⬜️ Ignored (Inspect) Jul 24, 2025 10:04pm

Copy link

codecov bot commented Jul 24, 2025

Bundle Report

Changes will increase total bundle size by 960 bytes (0.0%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
sentry-docs-client-array-push 9.83MB -6 bytes (-0.0%) ⬇️
sentry-docs-server-cjs 12.24MB 966 bytes (0.01%) ⬆️

Affected Assets, Files, and Routes:

view changes for bundle: sentry-docs-client-array-push

Assets Changed:

Asset Name Size Change Total Size Change (%)
static/chunks/pages/_app-*.js -3 bytes 879.71kB -0.0%
static/chunks/1831-*.js -3 bytes 422.23kB -0.0%
server/middleware-*.js 5.55kB 6.55kB 555.3% ⚠️
server/middleware-*.js -5.55kB 1.0kB -84.74%
static/EKBPH1-*.js (New) 77 bytes 77 bytes 100.0% 🚀
static/EKBPH1-*.js (New) 684 bytes 684 bytes 100.0% 🚀
static/13TBgYzCh1XrcZ9C2m3dI/_buildManifest.js (Deleted) -684 bytes 0 bytes -100.0% 🗑️
static/13TBgYzCh1XrcZ9C2m3dI/_ssgManifest.js (Deleted) -77 bytes 0 bytes -100.0% 🗑️
view changes for bundle: sentry-docs-server-cjs

Assets Changed:

Asset Name Size Change Total Size Change (%)
1729.js -3 bytes 1.75MB -0.0%
../instrumentation.js -3 bytes 1.08MB -0.0%
9523.js -3 bytes 1.05MB -0.0%
../app/[[...path]]/page.js.nft.json 325 bytes 725.33kB 0.04%
../app/platform-redirect/page.js.nft.json 325 bytes 725.24kB 0.04%
../app/sitemap.xml/route.js.nft.json 325 bytes 722.72kB 0.04%

@sfanahata sfanahata changed the title updating multiple JS frameworks to updated and more detailed source m… updating multiple JS frameworks to and more detailed source map info Jul 24, 2025
@sfanahata sfanahata requested a review from chargome July 25, 2025 19:19
Comment on lines +69 to +71
assets: ["./output/**/*"],
ignore: ["**/node_modules/**"],
filesToDeleteAfterUpload: ["./output/**/*.map"],
Copy link
Member

Choose a reason for hiding this comment

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

The SDK automatically sets those values, so people usually don't have to add something here.

But the default values would be:

filesToDeleteAfterUpload: [
   /* client */ '.*/**/public/**/*.map',  // deleting this is more important as it's client-side
   /* server */ '.*/**/server/**/*.map', '.*/**/output/**/*.map', '.*/**/function/**/*.map'
],

assets: undefined // it's undefined as we can't know exactly where the build is located. 
// But it could be:
// assets: ['./.output/server/**/*']

Comment on lines +70 to +74
sourcemaps: {
assets: ["./build/*/**/*"],
ignore: ["**/build/client/**/*"],
filesToDeleteAfterUpload: ["./build/**/*.map"],
},
Copy link
Member

Choose a reason for hiding this comment

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

same concern as @s1gr1d had above: These options aren't required. Either we clearly state that users can set them if the default behaviour doesn't work for them, or we just omit them. Happy to leave the decision up to you :)

Suggested change
sourcemaps: {
assets: ["./build/*/**/*"],
ignore: ["**/build/client/**/*"],
filesToDeleteAfterUpload: ["./build/**/*.map"],
},

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.

3 participants