sentry-javascript
sentry-javascript copied to clipboard
feat(browser): Add moduleMetadataIntegration lazy loading support
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.
@gilisho would you mind adding a test that simulates lazy loading the integration? (e.g. in dev-packages/browser-integration-tests/suites/integrations
Sure @chargome, added a test.
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!