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(browser): Add moduleMetadataIntegration lazy loading support #13817

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

Conversation

gilisho
Copy link

@gilisho gilisho commented Sep 26, 2024

This PR fixes #13803, and adds support for moduleMetadataIntegration to be lazy loaded, in this manner.
This integration is crucial for the micro-frontend recommended solution.

Note: I'll also try to create a PR for version ^7.0.

@chargome
Copy link
Member

chargome commented Oct 2, 2024

@gilisho would you mind adding a test that simulates lazy loading the integration? (e.g. in dev-packages/browser-integration-tests/suites/integrations

@gilisho
Copy link
Author

gilisho commented Oct 3, 2024

Sure @chargome, added a test.

@s1gr1d s1gr1d requested a review from mydea October 4, 2024 07:14
@mydea
Copy link
Member

mydea commented Oct 7, 2024

Note: I'll also try to create a PR for version ^7.0.

Just FYI, the lazyLoadIntegration() API was only introduced in v8, so nothing to backport to v7 there!

…yLoad/moduleMetadataIntegration/init.js

Co-authored-by: Francesco Novy <[email protected]>
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.

TypeError: Sentry.moduleMetadataIntegration is not a function when using loader script
3 participants