Skip to content

Commit 8ef71d1

Browse files
authored
build: Generate errors + replay only CDN bundle (#7067)
1 parent 2c4366c commit 8ef71d1

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

Diff for: .size-limit.js

+6
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,10 @@ module.exports = [
8484
gzip: true,
8585
limit: '80 KB',
8686
},
87+
{
88+
name: '@sentry/browser + @sentry/replay - ES6 CDN Bundle (gzipped + minified)',
89+
path: 'packages/browser/build/bundles/bundle.replay.min.js',
90+
gzip: true,
91+
limit: '80 KB',
92+
},
8793
];

Diff for: packages/browser/rollup.bundle.config.js

+12
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,16 @@ const builds = [];
1414
builds.push(...makeBundleConfigVariants(baseBundleConfig));
1515
});
1616

17+
// Full bundle incl. replay only available for es6
18+
const replayBaseBundleConfig = makeBaseBundleConfig({
19+
bundleType: 'standalone',
20+
entrypoints: ['src/index.ts'],
21+
jsVersion: 'es6',
22+
licenseTitle: '@sentry/browser & @sentry/replay',
23+
outputFileBase: () => 'bundles/bundle.replay',
24+
includeReplay: true,
25+
});
26+
27+
builds.push(...makeBundleConfigVariants(replayBaseBundleConfig));
28+
1729
export default builds;

Diff for: packages/tracing/rollup.bundle.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const builds = [];
1414
builds.push(...makeBundleConfigVariants(baseBundleConfig));
1515
});
1616

17-
// Full bundle incl. replay only avaialable for es6
17+
// Full bundle incl. replay only available for es6
1818
const replayBaseBundleConfig = makeBaseBundleConfig({
1919
bundleType: 'standalone',
2020
entrypoints: ['src/index.bundle.replay.ts'],

0 commit comments

Comments
 (0)