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, but estimation put it at ~2min faster.

@github-actions

github-actions Bot commented May 9, 2026 •

Copy link
Copy Markdown
Contributor

size-limit report 📦

Compared: 5994791 (PR test merge using develop at 03492d2)

Against: 03492d2 (develop) · base run #65336

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

Path Size % Change Change
@sentry/browser 29.82 kB -0.34% -101 B 🔽
@sentry/browser - with treeshaking flags 28.02 kB -0.2% -55 B 🔽
@sentry/browser - with treeshaking flags tracing without tracing 27.93 kB -0.13% -36 B 🔽
@sentry/browser (incl. Tracing) 52.01 kB -0.37% -192 B 🔽
@sentry/browser (incl. Tracing + Span Streaming) 52.01 kB -0.41% -209 B 🔽
@sentry/browser (incl. Tracing, Profiling) 54.95 kB -0.42% -230 B 🔽
@sentry/browser (incl. Tracing, Replay) 92.46 kB -0.07% -59 B 🔽
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 81.23 kB +0.04% +28 B 🔺
@sentry/browser (incl. Tracing, Replay with Canvas) 96.81 kB -0.45% -433 B 🔽
@sentry/browser (incl. Tracing, Replay, Feedback) 110.25 kB +0.01% +1 B 🔺
@sentry/browser (incl. Feedback) 47.46 kB -0.14% -65 B 🔽
@sentry/browser (incl. sendFeedback) 30.39 kB -13.2% -4.62 kB 🔽
@sentry/browser (incl. FeedbackAsync) 35.42 kB -11.76% -4.72 kB 🔽
@sentry/browser (incl. Metrics) 31.25 kB -0.76% -237 B 🔽
@sentry/browser (incl. Logs) 31.54 kB -0.74% -232 B 🔽
@sentry/browser (incl. Metrics & Logs) 32.24 kB -0.66% -214 B 🔽
@sentry/react 31.82 kB +0.13% +40 B 🔺
@sentry/react (incl. Tracing) 54.62 kB +0.02% +7 B 🔺
@sentry/vue 37.95 kB -0.76% -290 B 🔽
@sentry/vue (incl. Tracing) 54.92 kB -0.59% -325 B 🔽
@sentry/svelte 29.85 kB -0.35% -103 B 🔽
@sentry/remix (Remix 3 client bundle) 57.87 kB +0.09% +48 B 🔺
CDN Bundle 31.58 kB -0.46% -144 B 🔽
CDN Bundle (incl. Tracing) 52.36 kB -0.85% -444 B 🔽
CDN Bundle (incl. Logs, Metrics) 34.5 kB -0.06% -20 B 🔽
CDN Bundle (incl. Tracing, Logs, Metrics) 55.1 kB -0.4% -220 B 🔽
CDN Bundle (incl. Replay, Logs, Metrics) 75.57 kB -0.44% -329 B 🔽
CDN Bundle (incl. Tracing, Replay) 90.33 kB -0.72% -651 B 🔽
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 93.1 kB -0.47% -433 B 🔽
CDN Bundle (incl. Tracing, Replay, Feedback) 95.72 kB -1.44% -1.39 kB 🔽
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 98.47 kB -1.24% -1.24 kB 🔽
CDN Bundle - uncompressed 92.1 kB -0.72% -663 B 🔽
CDN Bundle (incl. Tracing) - uncompressed 154.58 kB -0.77% -1.19 kB 🔽
CDN Bundle (incl. Logs, Metrics) - uncompressed 100.75 kB -0.54% -542 B 🔽
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 162.52 kB -0.64% -1.03 kB 🔽
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 230.77 kB -0.9% -2.08 kB 🔽
CDN Bundle (incl. Tracing, Replay) - uncompressed 274.41 kB -1.1% -3.05 kB 🔽
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 282.35 kB -1.01% -2.88 kB 🔽
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 286.21 kB -1.71% -4.96 kB 🔽
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 294.13 kB -1.61% -4.79 kB 🔽
@sentry/nextjs (client) 58.08 kB +0.77% +442 B 🔺
@sentry/sveltekit (client) 52.99 kB +0.49% +258 B 🔺
@sentry/core/server 43.77 kB -0.1% -43 B 🔽
@sentry/core/browser 13.89 kB -0.24% -33 B 🔽
@sentry/node 149.8 kB -4.42% -6.93 kB 🔽
@sentry/node/import (ESM hook with diagnostics-channel injection) 83.14 kB +1.06% +870 B 🔺
@sentry/node - without tracing 89.25 kB -7.62% -7.35 kB 🔽
@sentry/node - without channel injection 138.76 kB +1.26% +1.72 kB 🔺
@sentry/aws-serverless 97.74 kB -7.15% -7.52 kB 🔽
@sentry/cloudflare (withSentry) - minified 199.79 kB -0.16% -305 B 🔽
@sentry/cloudflare (withSentry) 463.26 kB -6.81% -33.84 kB 🔽
@sentry/nextjs/cloudflare (withSentry) - minified 221.96 kB +0.01% +6 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. 6 not successful, 50 successful. See the run.

Check Status
❌ CI: Optional E2E Tests / E2E nextjs-16-cacheComponents (cloudflare) Test (optional) Failing after 10m Details
❌ CI: Optional E2E Tests / E2E node-flue (latest) Test (optional) Failing after 27s Details
❌ CI: Optional E2E Tests / E2E node-eve Test (optional) Failing after 2m Details
❌ CI: Optional E2E Tests / E2E cloudflare-pi-durable (latest) Test (optional) Failing after 35s Details
❌ CI: Optional E2E Tests / E2E node-eve (latest) Test (optional) Failing after 56s Details
❌ CI: Optional E2E Tests / E2E node-eve (orchestrion) Test (optional) Failing after 2m Details
Successful checks
Check Status
✅ CI: Optional E2E Tests / E2E cloudflare-flue-send-to-sentry Test (optional) Successful in 3m Details
✅ CI: Optional E2E Tests / E2E astro-7-static Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nextjs-16 (cloudflare, latest) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E nextjs-15 (turbo) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E nextjs-16-tunnel (cloudflare) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nextjs-16 (deno) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E node-express-mcp-v1 Test (optional) Successful in 30s Details
✅ CI: Optional E2E Tests / E2E debug-id-sourcemaps Test (optional) Successful in 44s Details
✅ CI: Optional E2E Tests / E2E cloudflare-think (ai v6) Test (optional) Successful in 58s Details
✅ CI: Optional E2E Tests / E2E cloudflare-think Test (optional) Successful in 58s Details
✅ CI: Optional E2E Tests / E2E nestjs-12 (latest) Test (optional) Successful in 44s Details
✅ CI: Optional E2E Tests / E2E cloudflare-workers-send-to-sentry Test (optional) Successful in 4m Details
✅ CI: Optional E2E Tests / E2E deno (latest) 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 nextjs-15 (latest) Test (optional) Successful in 3m Details
✅ CI: Optional E2E Tests / E2E node-express-send-to-sentry Test (optional) Successful in 2m 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 2m Details
✅ CI: Optional E2E Tests / E2E node-mastra Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E gen-ai-libraries (latest) Test (optional) Successful in 54s Details
✅ CI: Optional E2E Tests / E2E gen-ai-libraries Test (optional) Successful in 57s Details
✅ CI: Optional E2E Tests / E2E nextjs-16 (vinext) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E node-express-send-to-sentry-static Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E gen-ai-libraries (cloudflare) Test (optional) Successful in 40s Details
✅ CI: Optional E2E Tests / E2E node-fastify-6 Test (optional) Successful in 43s Details
✅ CI: Optional E2E Tests / E2E nuxt-5-sourcemaps (static / nuxt generate) Test (optional) Successful in 38s Details
✅ CI: Optional E2E Tests / E2E nuxt-5 Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E nuxt-5-sourcemaps Test (optional) Successful in 37s Details
✅ CI: Optional E2E Tests / E2E cloudflare-agent Test (optional) Successful in 45s Details
✅ CI: Optional E2E Tests / E2E node-pi-durable (latest) Test (optional) Successful in 45s Details
✅ CI: Optional E2E Tests / E2E nextjs-orpc Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E node-pi-durable Test (optional) Successful in 37s Details
✅ CI: Optional E2E Tests / E2E cloudflare-mastra Test (optional) Successful in 53s Details
✅ CI: Optional E2E Tests / E2E cloudflare-pi-durable Test (optional) Successful in 46s Details
✅ CI: Optional E2E Tests / E2E nuxt-5 (tunnel-dev) Test (optional) Successful in 58s Details
✅ CI: Optional E2E Tests / E2E tanstackstart-react-sourcemaps Test (optional) Successful in 37s Details
✅ CI: Optional E2E Tests / E2E node-fastify-6 (tracer provider) Test (optional) Successful in 40s Details
✅ CI: Optional E2E Tests / E2E node-mastra (latest) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E tanstackstart-react-cloudflare Test (optional) Successful in 37s Details
✅ CI: Optional E2E Tests / E2E solidstart-2 Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E node-openai-decisions Test (optional) Successful in 29s Details
✅ CI: Optional E2E Tests / E2E react-send-to-sentry Test (optional) Successful in 4m Details
✅ CI: Optional E2E Tests / E2E supabase-nextjs Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E node-openai-decisions (latest) Test (optional) Successful in 41s Details
✅ CI: Optional E2E Tests / E2E tanstackstart-react (latest) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E node-flue Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nuxt-5-sourcemaps (client source maps kept) Test (optional) Successful in 42s Details
✅ CI: Optional E2E Tests / E2E vue-3 (no Options API) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E react-router-7-framework-instrumentation Test (optional) Successful in 2m Details

@logaretm
logaretm force-pushed the tim/awad/use-rolldown branch 5 times, most recently from 3d856c4 to 8b3dc34 Compare November 6, 2026 19:35
@logaretm
logaretm force-pushed the tim/awad/use-rolldown branch from 8b3dc34 to 7dc52cf Compare November 6, 2026 21:24

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