Skip to content

feat: Build with Rolldown#872

Open
timfish wants to merge 2 commits intogetsentry:mainfrom
timfish:timfish/feat/rolldown-build
Open

feat: Build with Rolldown#872
timfish wants to merge 2 commits intogetsentry:mainfrom
timfish:timfish/feat/rolldown-build

Conversation

@timfish
Copy link
Collaborator

@timfish timfish commented Feb 11, 2026

This PR:

  • Migrates away from Rollup + plugins to Rolldown
  • Removes a load of files that are no longer required
  • Simplifies the build configurations
  • Prebuild script writes the LIB_VERSION to a file so we don't have to replace it at build time
  • Changes CI so that the packages are built once and artifacts are shared to the downstream jobs
    • This is required because Rolldown won't run on the ancient Node versions we test
    • It's much faster to copy the artifacts than to run the build in every job

Bonuses

  • Rollup v2 no longer in our deps
  • The full CI build is 33% faster
  • Even with TypeScript still doing declarations, the build step 2x faster

@github-actions
Copy link

github-actions bot commented Feb 11, 2026

Semver Impact of This PR

🟡 Minor (new features)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


New Features ✨

  • Build with Rolldown by timfish in #872
  • Esbuild no longer uses unplugin by timfish in #871
  • Webpack no longer uses unplugin by timfish in #870

🤖 This preview updates automatically when you update the PR.

@timfish timfish force-pushed the timfish/feat/rolldown-build branch from b1bab86 to b6337c2 Compare February 11, 2026 23:07
@timfish timfish force-pushed the timfish/feat/rolldown-build branch from b6337c2 to b8024d5 Compare February 11, 2026 23:17
@timfish timfish marked this pull request as ready for review February 11, 2026 23:20
@timfish timfish requested review from JPeer264, Lms24 and s1gr1d February 11, 2026 23:27
"ts-node": "^10.9.2"
},
"volta": {
"node": "18.20.8",
Copy link
Member

Choose a reason for hiding this comment

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

q: Are there any downsides to upgrade to v22 here? In the JS SDK we use v20, and I'm not sure if we can upgrade that easily (maybe we can)

@JPeer264
Copy link
Member

Also for the record. I'm fine with a RC of rolldown being in here. If there are no issues with it ofc - but I'm not a pro in rolldown either :)

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.

2 participants