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

build(browser): Add function export in minified bundle for micro frontends #14925

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

Conversation

philippeVV
Copy link

@philippeVV philippeVV commented Jan 7, 2025

Add the function makeMultiplexedTransport from @sentry/core to the export in the browser package.
Make the function available in the browser minified bundle.

This function is required to use Sentry Micro Frontend.

  • 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).

Copy link
Member

@Lms24 Lms24 left a comment

Choose a reason for hiding this comment

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

Hey @philippeVV, thanks for opening this PR! makeMultiplexedTransport is currently only exported from the NPM package, you're right. But there's a reason for it: Bundle size would increase for all CDN bundle users, while multiplexed transport usage is rather the exception than the norm. Before we merge this, I'd like to check if we can find an alternative solution. Is there a way you could use the NPM package instead of the CDN bundles?

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