Skip to content

Conversation

@timfish
Copy link
Collaborator

@timfish timfish commented Jan 23, 2026

Since Rolldown/Vite/webpack now use a single injection plugin, its simpler to combine the injection strings to remove duplicate code.

All the injection snippets contain the same global lookup code which can be a common header. Once you are using two snippets (release injection + debug ID injection), this saves 180 bytes per chunk. If you are also using metadata injection this saves a further 180 bytes per chunk.

@timfish timfish force-pushed the timfish/feat/combine-injection-snippets branch from b8eee94 to 1d24d11 Compare January 23, 2026 13:04
@timfish timfish requested review from Lms24, chargome and s1gr1d January 23, 2026 13:13
@timfish timfish marked this pull request as ready for review January 23, 2026 13:13
@timfish timfish force-pushed the timfish/feat/combine-injection-snippets branch from 1d24d11 to 6982176 Compare January 23, 2026 13:33
@github-actions
Copy link

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 ✨

  • Combine injection snippets by timfish in #853

Internal Changes 🔧

  • (release) Fix changelog-preview permissions by BYK in #852

🤖 This preview updates automatically when you update the PR.

@timfish timfish requested a review from logaretm January 23, 2026 17:16
Copy link
Collaborator

@logaretm logaretm left a comment

Choose a reason for hiding this comment

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

Nice one!

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