Skip to content

Prepare for rolldown/rolldown-vite usage #748

@TheAlexLichter

Description

@TheAlexLichter

With Rolldown in beta and rolldown-vite in the technical preview, a few things could be improved regarding the Sentry JS Bundler plugins:

Preparation for Rolldown and rolldown-vite

Vite Plugin

Right now it seems that using @sentry/vite-plugin causes perf slowdown when used with rolldown-vite (example from Twitter). Using hook filters (and generally migrating when rolldown-vite is detected) could help with that.

Rollup plugin

Same improvements regarding plugin hooks should work for Rollup given that hooks are available in Rolldown, Vite and Rollup.

Bundling

Right now, rollup is also used to bundle all the plugins. Like Vite itself, one could either try using Rolldown directly or a lib bundler like tsdown here


Related: e18e/ecosystem-issues#171

Sub-issues

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions