Skip to content

Conversation

@yoannmoinet
Copy link
Member

@yoannmoinet yoannmoinet commented Jan 22, 2026

What and why?

Rolldown seems to have a different API than rollup.
We need to compensate for it in the build-report plugin.

How?

In the build-report plugin, if we don't have access to the original size of the file, we get it using fs.statSync instead.

In case of failure, we fallback on the rendered size, eg. the built size, which is different, but still better than nothing, I think.

Fixes #218

@yoannmoinet yoannmoinet marked this pull request as ready for review January 22, 2026 22:42
@yoannmoinet yoannmoinet merged commit 6ad6c0c into master Jan 23, 2026
5 checks passed
@yoannmoinet yoannmoinet deleted the yoann/fix-rolldown-size branch January 23, 2026 14:42
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.

Vite rolldown incompatibility with datadogVitePlugin

3 participants