sentry-javascript icon indicating copy to clipboard operation
sentry-javascript copied to clipboard

feat(browser): Add moduleMetadataIntegration lazy loading support

Open gilisho opened this issue 1 year ago • 3 comments

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 avatar Sep 26 '24 19:09 gilisho

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

chargome avatar Oct 02 '24 13:10 chargome

Sure @chargome, added a test.

gilisho avatar Oct 03 '24 10:10 gilisho

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!

mydea avatar Oct 07 '24 07:10 mydea