Skip to content

Commit 2f2aac9

Browse files
authored
feat(browser/v7): Publish browserprofling CDN bundle (#12224)
Backporting #12158 to v7 ref #12156 This is also necessary (or at least helpful) if we want to make this selectable in the loader script.
1 parent 426c554 commit 2f2aac9

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

packages/browser/rollup.bundle.config.mjs

+13-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,19 @@ targets.forEach(jsVersion => {
2525
outputFileBase: () => `bundles/bundle.tracing${jsVersion === 'es5' ? '.es5' : ''}`,
2626
});
2727

28-
builds.push(...makeBundleConfigVariants(baseBundleConfig), ...makeBundleConfigVariants(tracingBaseBundleConfig));
28+
const browserProfilingAddonBaseBundleConfig = makeBaseBundleConfig({
29+
bundleType: 'addon',
30+
entrypoints: ['src/profiling/integration.ts'],
31+
jsVersion,
32+
licenseTitle: '@sentry/browser',
33+
outputFileBase: () => `bundles/browserprofiling${jsVersion === 'es5' ? '.es5' : ''}`,
34+
});
35+
36+
builds.push(
37+
...makeBundleConfigVariants(baseBundleConfig),
38+
...makeBundleConfigVariants(tracingBaseBundleConfig),
39+
...makeBundleConfigVariants(browserProfilingAddonBaseBundleConfig),
40+
);
2941
});
3042

3143
if (targets.includes('es6')) {

0 commit comments

Comments
 (0)