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: d50349a (PR test merge using develop at c7d2764)

Against: c7d2764 (develop) · base run #65121

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

Path Size % Change Change
@sentry/browser 30.29 kB -0.38% -113 B 🔽
@sentry/browser - with treeshaking flags 28.48 kB -0.21% -59 B 🔽
@sentry/browser - with treeshaking flags tracing without tracing 28.39 kB -0.16% -43 B 🔽
@sentry/browser (incl. Tracing) 52.44 kB -0.55% -287 B 🔽
@sentry/browser (incl. Tracing + Span Streaming) 52.44 kB -0.55% -290 B 🔽
@sentry/browser (incl. Tracing, Profiling) 55.39 kB -0.57% -315 B 🔽
@sentry/browser (incl. Tracing, Replay) 92.88 kB -0.17% -156 B 🔽
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 81.71 kB +0.11% +86 B 🔺
@sentry/browser (incl. Tracing, Replay with Canvas) 97.22 kB -0.57% -553 B 🔽
@sentry/browser (incl. Tracing, Replay, Feedback) 110.71 kB -0.06% -60 B 🔽
@sentry/browser (incl. Feedback) 47.93 kB -0.13% -59 B 🔽
@sentry/browser (incl. sendFeedback) 35.38 kB -0.37% -129 B 🔽
@sentry/browser (incl. FeedbackAsync) 40.45 kB -0.38% -152 B 🔽
@sentry/browser (incl. Metrics) 31.18 kB -0.81% -252 B 🔽
@sentry/browser (incl. Logs) 31.49 kB -0.75% -237 B 🔽
@sentry/browser (incl. Metrics & Logs) 32.25 kB -0.63% -202 B 🔽
@sentry/react 32.29 kB - -
@sentry/react (incl. Tracing) 55.09 kB -0.03% -15 B 🔽
@sentry/vue 38.45 kB -0.57% -218 B 🔽
@sentry/vue (incl. Tracing) 55.38 kB -0.67% -372 B 🔽
@sentry/svelte 30.3 kB -0.4% -121 B 🔽
@sentry/remix (Remix 3 client bundle) 57.84 kB +0.04% +20 B 🔺
CDN Bundle 32.06 kB -0.42% -132 B 🔽
CDN Bundle (incl. Tracing) 52.84 kB -0.79% -418 B 🔽
CDN Bundle (incl. Logs, Metrics) 34.43 kB -0.11% -37 B 🔽
CDN Bundle (incl. Tracing, Logs, Metrics) 54.94 kB -0.47% -258 B 🔽
CDN Bundle (incl. Replay, Logs, Metrics) 75.49 kB -0.51% -384 B 🔽
CDN Bundle (incl. Tracing, Replay) 90.8 kB -0.75% -679 B 🔽
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 92.95 kB -0.5% -458 B 🔽
CDN Bundle (incl. Tracing, Replay, Feedback) 100.9 kB +3.41% +3.33 kB 🔺
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 103.02 kB +3.46% +3.44 kB 🔺
CDN Bundle - uncompressed 93.98 kB -0.74% -695 B 🔽
CDN Bundle (incl. Tracing) - uncompressed 156.45 kB -0.78% -1.22 kB 🔽
CDN Bundle (incl. Logs, Metrics) - uncompressed 100.59 kB -0.55% -548 B 🔽
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 162.36 kB -0.64% -1.04 kB 🔽
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 230.62 kB -0.9% -2.08 kB 🔽
CDN Bundle (incl. Tracing, Replay) - uncompressed 276.29 kB -1.11% -3.08 kB 🔽
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 282.19 kB -1.02% -2.89 kB 🔽
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 299.4 kB +2.17% +6.33 kB 🔺
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 305.3 kB +2.19% +6.53 kB 🔺
@sentry/nextjs (client) 58.53 kB +0.83% +477 B 🔺
@sentry/sveltekit (client) 53.51 kB +0.51% +270 B 🔺
@sentry/core/server 44.25 kB +0.02% +7 B 🔺
@sentry/core/browser 13.89 kB -0.24% -33 B 🔽
@sentry/node 149.81 kB -4.42% -6.92 kB 🔽
@sentry/node/import (ESM hook with diagnostics-channel injection) 83.14 kB +1.06% +869 B 🔺
@sentry/node - without tracing 89.66 kB -7.6% -7.37 kB 🔽
@sentry/node - without channel injection 138.78 kB +1.26% +1.72 kB 🔺
@sentry/aws-serverless 97.86 kB -7.15% -7.53 kB 🔽
@sentry/cloudflare (withSentry) - minified 200.37 kB -0.16% -305 B 🔽
@sentry/cloudflare (withSentry) 465.05 kB -6.82% -34 kB 🔽
@sentry/nextjs/cloudflare (withSentry) - minified 222.68 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. 7 not successful, 49 successful. See the run.

Check Status
❌ CI: Optional E2E Tests / E2E cloudflare-pi-durable (latest) Test (optional) Failing after 51s Details
⛔ CI: Optional E2E Tests / E2E nextjs-16 (cloudflare, latest) Test (optional) Cancelled after 15m Details
❌ CI: Optional E2E Tests / E2E node-flue (latest) Test (optional) Failing after 57s Details
❌ CI: Optional E2E Tests / E2E nextjs-16-cacheComponents (cloudflare) Test (optional) Failing after 11m Details
❌ CI: Optional E2E Tests / E2E node-eve Test (optional) Failing after 2m Details
❌ CI: Optional E2E Tests / E2E node-eve (latest) Test (optional) Failing after 1m 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-agent Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E astro-7 Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E cloudflare-pi-durable Test (optional) Successful in 58s Details
✅ CI: Optional E2E Tests / E2E cloudflare-think Test (optional) Successful in 58s Details
✅ CI: Optional E2E Tests / E2E gen-ai-libraries (cloudflare) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nextjs-14 (latest) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E cloudflare-think (ai v6) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E node-flue Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E deno (latest) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nextjs-15 (latest) Test (optional) Successful in 3m Details
✅ CI: Optional E2E Tests / E2E cloudflare-flue-send-to-sentry Test (optional) Successful in 3m Details
✅ CI: Optional E2E Tests / E2E nextjs-16-tunnel (cloudflare) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E astro-7-static Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E gen-ai-libraries Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E node-pi-durable Test (optional) Successful in 56s Details
✅ CI: Optional E2E Tests / E2E nextjs-16 (vinext) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E nextjs-orpc Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E cloudflare-workers-send-to-sentry Test (optional) Successful in 3m Details
✅ CI: Optional E2E Tests / E2E nextjs-15 (turbo) Test (optional) Successful in 3m Details
✅ CI: Optional E2E Tests / E2E node-express-send-to-sentry-static Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E node-express-mcp-v2 Test (optional) Successful in 53s Details
✅ CI: Optional E2E Tests / E2E debug-id-sourcemaps Test (optional) Successful in 45s Details
✅ CI: Optional E2E Tests / E2E node-fastify-6 (tracer provider) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E node-openai-decisions Test (optional) Successful in 47s Details
✅ CI: Optional E2E Tests / E2E gen-ai-libraries (latest) Test (optional) Successful in 1m 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 50s Details
✅ CI: Optional E2E Tests / E2E nextjs-16 (deno) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E nextjs-16 (vinext, bun) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E node-mastra Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E solidstart-2 Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E node-openai-decisions (latest) Test (optional) Successful in 47s Details
✅ CI: Optional E2E Tests / E2E tanstackstart-react-sourcemaps Test (optional) Successful in 51s Details
✅ CI: Optional E2E Tests / E2E node-express-send-to-sentry Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E supabase-nextjs Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E nuxt-5-sourcemaps (static / nuxt generate) Test (optional) Successful in 10m Details
✅ CI: Optional E2E Tests / E2E tanstackstart-react (latest) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E vue-3 (no Options API) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E node-pi-durable (latest) Test (optional) Successful in 52s Details
✅ CI: Optional E2E Tests / E2E nuxt-5-sourcemaps (client source maps kept) Test (optional) Successful in 50s Details
✅ CI: Optional E2E Tests / E2E nestjs-12 (latest) Test (optional) Successful in 56s Details
✅ CI: Optional E2E Tests / E2E node-mastra (latest) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nuxt-5 (tunnel-dev) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E react-router-7-framework-instrumentation Test (optional) Successful in 3m Details
✅ CI: Optional E2E Tests / E2E node-fastify-6 Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E tanstackstart-react-cloudflare Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nuxt-5-sourcemaps Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nuxt-5 Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E react-send-to-sentry Test (optional) Successful in 3m Details

@logaretm
logaretm force-pushed the tim/awad/use-rolldown branch from 3e23fc6 to 80bb0e4 Compare November 5, 2026 15:44
@logaretm
logaretm force-pushed the tim/awad/use-rolldown branch from 80bb0e4 to ea0ebe9 Compare November 5, 2026 16:21

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