Steps to Reproduce
- Create a Vite + React project and add a good amount of JSX components
- Build the project. This is fast
- Enable
reactComponentAnnotation
- Build again - now it is slow :(
Actual Result
When using the option in Sentry's Vite plugin, a Babel transform is utilized which slows down builds with a lot of components.
|
const transformAnnotations = options.reactComponentAnnotation?.enabled |
Expected Result
A Rolldown/Vite 8 parse + Magic String transform is used which should take a fraction of the time.
Steps to Reproduce
reactComponentAnnotationActual Result
When using the option in Sentry's Vite plugin, a Babel transform is utilized which slows down builds with a lot of components.
sentry-javascript-bundler-plugins/packages/bundler-plugins/src/rollup/index.ts
Line 113 in 988efd3
Expected Result
A Rolldown/Vite 8 parse + Magic String transform is used which should take a fraction of the time.