Skip to content

Commit cab40cd

Browse files
gilishomydea
authored andcommitted
feat(browser): Add moduleMetadataIntegration lazy loading support
1 parent a91a5ba commit cab40cd

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

dev-packages/browser-integration-tests/utils/generatePlugin.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ const IMPORTED_INTEGRATION_CDN_BUNDLE_PATHS: Record<string, string> = {
3737
reportingObserverIntegration: 'reportingobserver',
3838
sessionTimingIntegration: 'sessiontiming',
3939
feedbackIntegration: 'feedback',
40+
moduleMetadataIntegration: 'modulemetadata',
4041
};
4142

4243
const BUNDLE_PATHS: Record<string, Record<string, string>> = {

packages/browser/rollup.bundle.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ const reexportedPluggableIntegrationFiles = [
1212
'rewriteframes',
1313
'sessiontiming',
1414
'feedback',
15+
'modulemetadata'
1516
];
1617

1718
browserPluggableIntegrationFiles.forEach(integrationName => {
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { moduleMetadataIntegration } from '@sentry/core';

packages/browser/src/utils/lazyLoadIntegration.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ const LazyLoadableIntegrations = {
2121
rewriteFramesIntegration: 'rewriteframes',
2222
sessionTimingIntegration: 'sessiontiming',
2323
browserProfilingIntegration: 'browserprofiling',
24+
moduleMetadataIntegration: 'modulemetadata',
2425
} as const;
2526

2627
const WindowWithMaybeIntegration = WINDOW as {

0 commit comments

Comments
 (0)