Skip to content

chore: Switch to rolldown - #20775

Draft
logaretm wants to merge 1 commit into
developfrom
tim/awad/use-rolldown
Draft

logaretm wants to merge 1 commit into
developfrom
tim/awad/use-rolldown

Conversation

@logaretm

@logaretm logaretm commented May 8, 2026 •

Copy link
Copy Markdown
Member

Refreshed what we had in #18156 with the latest rolldown and let's see if we can get this one out.

Benchmarks

Individual SDKs

Clean build times on my machine, averaged over 3 runs, develop vs this branch:

Package rollup 4.60.3 rolldown 1.2.14 Speedup
@sentry/browser (incl. CDN bundles) 41.60s 5.79s 7.2x
@sentry/replay-internal (incl. CDN bundles) 4.04s 1.37s 2.9x
@sentry/node 1.49s 0.72s 2.1x
@sentry/core 1.28s 0.69s 1.9x
@sentry/nextjs* 1.76s 1.40s 1.3x
  • NextJS SDK still uses rolldown to rebundle some files as part of the SDK buildtime configuration. This will need a separate PR.

Full Build

Full monorepo build on my machine (clean, --skip-nx-cache), median of 4 runs, develop vs this branch on the same base.

rollup 4.60.3 rolldown 1.2.15 Speedup
Full build (transpile + types + bundles) 63.1s 20.4s 3.1x
Transpile + bundles only 59.1s 16.9s 3.5x
  • No CI comparison due to cache state skew.

@github-actions

github-actions Bot commented May 9, 2026 •

Copy link
Copy Markdown
Contributor

size-limit report 📦

Compared: 131dfce (PR test merge using develop at 03e18ae)

Against: 03e18ae (develop) · base run #63585

✅ Baseline matches: this diff contains only this PR's changes.

Path Size % Change Change
@sentry/browser 29.95 kB -0.12% -33 B 🔽
@sentry/browser - with treeshaking flags 28.12 kB -0.05% -12 B 🔽
@sentry/browser - with treeshaking flags tracing without tracing 28.02 kB -0.03% -7 B 🔽
@sentry/browser (incl. Tracing) 52.15 kB -0.04% -20 B 🔽
@sentry/browser (incl. Tracing + Span Streaming) 52.16 kB -0.04% -17 B 🔽
@sentry/browser (incl. Tracing, Profiling) 55.09 kB -0.06% -28 B 🔽
@sentry/browser (incl. Tracing, Replay) 91.93 kB -0.05% -45 B 🔽
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 80.85 kB -0.01% -6 B 🔽
@sentry/browser (incl. Tracing, Replay with Canvas) 96.25 kB -0.47% -447 B 🔽
@sentry/browser (incl. Tracing, Replay, Feedback) 109.66 kB +0.03% +22 B 🔺
@sentry/browser (incl. Feedback) 47.56 kB +0.11% +52 B 🔺
@sentry/browser (incl. sendFeedback) 35.04 kB -0.02% -7 B 🔽
@sentry/browser (incl. FeedbackAsync) 40.17 kB +0.05% +17 B 🔺
@sentry/browser (incl. Metrics) 30.84 kB -0.54% -167 B 🔽
@sentry/browser (incl. Logs) 31.15 kB -0.42% -129 B 🔽
@sentry/browser (incl. Metrics & Logs) 31.87 kB -0.25% -77 B 🔽
@sentry/react 31.85 kB +0.13% +39 B 🔺
@sentry/react (incl. Tracing) 54.73 kB +0.43% +230 B 🔺
@sentry/vue 37.83 kB -0.82% -309 B 🔽
@sentry/vue (incl. Tracing) 54.88 kB -0.42% -226 B 🔽
@sentry/svelte 29.98 kB -0.11% -32 B 🔽
@sentry/remix (Remix 3 client bundle) 57.21 kB +0.04% +20 B 🔺
CDN Bundle 31.68 kB -0.26% -80 B 🔽
CDN Bundle (incl. Tracing) 52.34 kB -0.71% -370 B 🔽
CDN Bundle (incl. Logs, Metrics) 33.98 kB +0.07% +22 B 🔺
CDN Bundle (incl. Tracing, Logs, Metrics) 54.37 kB -0.54% -290 B 🔽
CDN Bundle (incl. Replay, Logs, Metrics) 74.56 kB -0.5% -371 B 🔽
CDN Bundle (incl. Tracing, Replay) 89.81 kB -0.67% -602 B 🔽
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 91.84 kB -0.53% -487 B 🔽
CDN Bundle (incl. Tracing, Replay, Feedback) 99.92 kB +3.5% +3.37 kB 🔺
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 101.95 kB +3.51% +3.45 kB 🔺
CDN Bundle - uncompressed 92.86 kB -0.7% -651 B 🔽
CDN Bundle (incl. Tracing) - uncompressed 155.27 kB -0.7% -1.09 kB 🔽
CDN Bundle (incl. Logs, Metrics) - uncompressed 99.5 kB -0.57% -562 B 🔽
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 161.29 kB -0.65% -1.04 kB 🔽
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 228.19 kB -0.91% -2.09 kB 🔽
CDN Bundle (incl. Tracing, Replay) - uncompressed 273.79 kB -1.06% -2.91 kB 🔽
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 279.81 kB -1.01% -2.85 kB 🔽
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 296.91 kB +2.24% +6.5 kB 🔺
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 302.92 kB +2.22% +6.57 kB 🔺
@sentry/nextjs (client) 57.87 kB +0.86% +492 B 🔺
@sentry/sveltekit (client) 52.98 kB +0.83% +431 B 🔺
@sentry/core/server 43.74 kB +0.28% +122 B 🔺
@sentry/core/browser 13.77 kB -0.33% -45 B 🔽
@sentry/node 147.66 kB -3.98% -6.11 kB 🔽
@sentry/node/import (ESM hook with diagnostics-channel injection) 82.44 kB +1.06% +857 B 🔺
@sentry/node - without tracing 87.63 kB -8.07% -7.69 kB 🔽
@sentry/node - without channel injection 136.8 kB +1.77% +2.37 kB 🔺
@sentry/aws-serverless 95.9 kB -7.33% -7.58 kB 🔽
@sentry/cloudflare (withSentry) - minified 195.21 kB -0.17% -314 B 🔽
@sentry/cloudflare (withSentry) 453.27 kB -6.81% -33.1 kB 🔽
@sentry/nextjs/cloudflare (withSentry) - minified 216.15 kB -0.02% -41 B 🔽

View base workflow run

@logaretm
logaretm force-pushed the tim/awad/use-rolldown branch 6 times, most recently from 64ea470 to bf6f465 Compare May 12, 2026 16:20
@logaretm
logaretm force-pushed the tim/awad/use-rolldown branch 9 times, most recently from 1f4024d to 7d12000 Compare May 28, 2026 16:20
@logaretm
logaretm force-pushed the tim/awad/use-rolldown branch 3 times, most recently from e3dab2d to 5104f9a Compare June 4, 2026 20:07
@github-actions

Copy link
Copy Markdown
Contributor

This pull request has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you apply the label PR: no-auto-close I will leave it alone ... forever!

@logaretm
logaretm force-pushed the tim/awad/use-rolldown branch 7 times, most recently from 7e9a9c6 to c823474 Compare August 25, 2026 19:35
@logaretm
logaretm force-pushed the tim/awad/use-rolldown branch 4 times, most recently from 868607b to 44691af Compare August 27, 2026 15:33
@logaretm
logaretm force-pushed the tim/awad/use-rolldown branch from 44691af to 3b79d0f Compare September 23, 2026 18:34
@andreiborza

Copy link
Copy Markdown
Member

@logaretm do we still want to do this ? This PR has been open for quite a while now, maybe we can close it and track this via the issue in Linear?

@logaretm

Copy link
Copy Markdown
Member Author

@andreiborza I'm still working on this whenever rolldown fixes a blocking bug, last activity is 2 days ago. Right now I'm doing a whack-a-mole with CJS issues in rolldown if it drags more beyond this issue i will close it.

@logaretm
logaretm force-pushed the tim/awad/use-rolldown branch 7 times, most recently from ed1b5df to b75cbe8 Compare October 20, 2026 19:01
@logaretm
logaretm force-pushed the tim/awad/use-rolldown branch from b75cbe8 to 9ec300a Compare October 26, 2026 15:10
@github-actions

Copy link
Copy Markdown
Contributor

One or more gzipped bundles increased by more than 500 bytes. If this increase is intentional, add the Accept Bundlesize Increase label to this PR to rerun and accept the check.

@github-actions

github-actions Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Optional E2E tests

Some optional checks were not successful. They do not block the merge. 1 not successful, 64 successful. See the run.

Check Status
❌ CI: Optional E2E Tests / E2E node-anthropic-send-to-sentry (latest) Test (optional) Failing after 14s Details
Successful checks
Check Status
✅ CI: Optional E2E Tests / E2E cloudflare-flue-send-to-sentry Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E cloudflare-mastra Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E node-express-mcp-v1 Test (optional) Successful in 24s Details
✅ CI: Optional E2E Tests / E2E nextjs-16-standalone (canary, turbopack) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nuxt-5-sourcemaps (static / nuxt generate) Test (optional) Successful in 47s Details
✅ CI: Optional E2E Tests / E2E gen-ai-libraries (cloudflare) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E react-router-7-framework-instrumentation Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E nextjs-16 (cloudflare, latest) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E nextjs-16-tunnel (cloudflare) Test (optional) Successful in 48s Details
✅ CI: Optional E2E Tests / E2E cloudflare-think Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nextjs-14 (canary) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E debug-id-sourcemaps Test (optional) Successful in 41s Details
✅ CI: Optional E2E Tests / E2E astro-7 Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nextjs-16 (vinext, bun) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E nextjs-14 (latest) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E cloudflare-workers-send-to-sentry Test (optional) Successful in 5m Details
✅ CI: Optional E2E Tests / E2E solidstart-2 Test (optional) Successful in 40s Details
✅ CI: Optional E2E Tests / E2E deno (latest) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E supabase-nextjs Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E angular (canary) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E node-express-mcp-v2 Test (optional) Successful in 35s Details
✅ CI: Optional E2E Tests / E2E node-eve (orchestrion) Test (optional) Successful in 51s Details
✅ CI: Optional E2E Tests / E2E gen-ai-libraries Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nextjs-15 (turbo) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E tanstackstart-react-sourcemaps Test (optional) Successful in 44s Details
✅ CI: Optional E2E Tests / E2E tanstackstart-react-cloudflare Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E vue-3 (canary) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E angular (canary) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E react-send-to-sentry Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E cloudflare-pi-durable (latest) Test (optional) Successful in 9m Details
✅ CI: Optional E2E Tests / E2E cloudflare-agent Test (optional) Successful in 52s Details
✅ CI: Optional E2E Tests / E2E nextjs-16 (canary, turbopack) Test (optional) Successful in 4m Details
✅ CI: Optional E2E Tests / E2E astro-7-static Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nextjs-16 (vinext) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E nextjs-16 (canary, webpack) Test (optional) Successful in 5m Details
✅ CI: Optional E2E Tests / E2E cloudflare-think (ai v6) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E node-pi-durable Test (optional) Successful in 50s Details
✅ CI: Optional E2E Tests / E2E nuxt-3 (canary) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E node-anthropic-send-to-sentry Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E cloudflare-pi-durable Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E node-flue Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E node-fastify-6 (tracer provider) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E node-mastra (latest) Test (optional) Successful in 10m Details
✅ CI: Optional E2E Tests / E2E node-eve Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E node-express-send-to-sentry-static Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E nuxt-5 Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E node-express-send-to-sentry Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E node-fastify-6 Test (optional) Successful in 35s Details
✅ CI: Optional E2E Tests / E2E node-pi-durable (latest) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E node-openai-send-to-sentry (latest) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E nuxt-4 (canary) Test (optional) Successful in 4m Details
✅ CI: Optional E2E Tests / E2E node-flue (latest) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E node-openai-decisions-send-to-sentry Test (optional) Successful in 9m Details
✅ CI: Optional E2E Tests / E2E nextjs-16 (deno) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E nextjs-orpc Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nuxt-5-sourcemaps Test (optional) Successful in 36s Details
✅ CI: Optional E2E Tests / E2E node-openai-send-to-sentry Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E node-mastra Test (optional) Successful in 11m Details
✅ CI: Optional E2E Tests / E2E node-openai-decisions-send-to-sentry (latest) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nuxt-5-sourcemaps (client source maps kept) Test (optional) Successful in 25s Details
✅ CI: Optional E2E Tests / E2E nextjs-15 (latest) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E nuxt-4-static (canary) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E node-eve (latest) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E vue-3 (no Options API) Test (optional) Successful in 2m Details

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants