8000 feat(replay): export compression worker for bundling by Spice-King · Pull Request #16794 · getsentry/sentry-javascript · GitHub
[go: up one dir, main page]

Skip to content

feat(replay): export compression worker for bundling #16794

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

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

Conversation

Spice-King
Copy link

Closes #16739. This is broken up into three commits, each to solve a given fragment of the over all issue I wrote up.

Of note, e451d37 was a bit of a compromise. While I could then reexport the worker in every single sub package that imports @sentry/browser, it felt too dirty and I have bashed my head on trying to make a less invasive way to export it in those sub packages. Perfect is the enemy of good enough, and this does at least work and avoids people poking @sentry-internal/replay at the very least.

e515834 is more a creature comfort since Vite's recommended way creates a URL object to load it, and it's not like it's being handled in any way more than grabbing a default.

Both of those commits could be ejected from this PR, if you'd rather not have them or they'd be better suited to a separate PR. A follow PR to the docs repo is something I'll cook up if/when this is merged, unless someone has a strong opinion on how to write it.

  • If you've added code that should be tested, please add tests.
  • Ensure your code lints and the test suite passes (yarn lint) & (yarn test).

@Spice-King Spice-King requested a review from a team as a code owner July 2, 2025 21:53
@chargome chargome requested a review from mydea July 3, 2025 11:11
Copy link
Member
@chargome chargome left a comment

Choose a reason for hiding this comment

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

@Spice-King thanks for contributing!

Please limit the subpath export to the @sentry/replay-internal package and remove the @sentry/browser part for now. We can then iterate from here, but subpath exports from browser can be a bit risky to handle on our side.

@Spice-King
Copy link
Author

Alright, dropping e451d37 and rebasing to develop now.

@Spice-King Spice-King force-pushed the replay-worker-bundling branch from e515834 to 0570522 Compare July 3, 2025 12:40
@Spice-King Spice-King force-pushed the replay-worker-bundling branch from 0570522 to ce86312 Compare July 3, 2025 12:49
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.

Export Replay Compression Worker
2 participants
0