diff --git a/dev-packages/browser-integration-tests/utils/generatePlugin.ts b/dev-packages/browser-integration-tests/utils/generatePlugin.ts index cf2816ab0033..3f3164731532 100644 --- a/dev-packages/browser-integration-tests/utils/generatePlugin.ts +++ b/dev-packages/browser-integration-tests/utils/generatePlugin.ts @@ -41,6 +41,8 @@ const IMPORTED_INTEGRATION_CDN_BUNDLE_PATHS: Record = { ReportingObserver: 'reportingobserver', sessionTimingIntegration: 'sessiontiming', SessionTiming: 'sessiontiming', + moduleMetadataIntegration: 'modulemetadata', + ModuleMetadata: 'modulemetadata', }; const BUNDLE_PATHS: Record> = { diff --git a/packages/browser/rollup.bundle.config.mjs b/packages/browser/rollup.bundle.config.mjs index b5bc67728796..db07a5be87b4 100644 --- a/packages/browser/rollup.bundle.config.mjs +++ b/packages/browser/rollup.bundle.config.mjs @@ -33,10 +33,19 @@ targets.forEach(jsVersion => { outputFileBase: () => `bundles/browserprofiling${jsVersion === 'es5' ? '.es5' : ''}`, }); + const moduleMetadataAddonBaseBundleConfig = makeBaseBundleConfig({ + bundleType: 'addon', + entrypoints: ['src/integrations/modulemetadata.ts'], + jsVersion, + licenseTitle: '@sentry/browser', + outputFileBase: () => `bundles/modulemetadata${jsVersion === 'es5' ? '.es5' : ''}`, + }); + builds.push( ...makeBundleConfigVariants(baseBundleConfig), ...makeBundleConfigVariants(tracingBaseBundleConfig), ...makeBundleConfigVariants(browserProfilingAddonBaseBundleConfig), + ...makeBundleConfigVariants(moduleMetadataAddonBaseBundleConfig), ); }); diff --git a/packages/browser/src/integrations/modulemetadata.ts b/packages/browser/src/integrations/modulemetadata.ts new file mode 100644 index 000000000000..b033b65aa0e9 --- /dev/null +++ b/packages/browser/src/integrations/modulemetadata.ts @@ -0,0 +1,2 @@ +/* eslint-disable deprecation/deprecation */ +export { moduleMetadataIntegration, ModuleMetadata } from '@sentry/core';