Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Use globalThis for code injection #2162

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

timfish
Copy link
Contributor

@timfish timfish commented Sep 23, 2024

Since v8 of the JavaScript SDKs we dropped Node v12 support which means all the platforms we support have globalThis.

This saves ~90 bytes every time debug IDs are injected.

@lforst points out that this would require a major version bump of both the CLI and the bundler plugins so these bumps would likely need to occur at the same time and it might not be a priority to merge this straight away!

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.

1 participant