diff --git a/.size-limit.js b/.size-limit.js index 461de7995ad1..edc8a5466235 100644 --- a/.size-limit.js +++ b/.size-limit.js @@ -84,4 +84,10 @@ module.exports = [ gzip: true, limit: '80 KB', }, + { + name: '@sentry/browser + @sentry/replay - ES6 CDN Bundle (gzipped + minified)', + path: 'packages/browser/build/bundles/bundle.replay.min.js', + gzip: true, + limit: '80 KB', + }, ]; diff --git a/packages/browser/rollup.bundle.config.js b/packages/browser/rollup.bundle.config.js index 23f9bb474c94..e063a9bd4ab0 100644 --- a/packages/browser/rollup.bundle.config.js +++ b/packages/browser/rollup.bundle.config.js @@ -14,4 +14,16 @@ const builds = []; builds.push(...makeBundleConfigVariants(baseBundleConfig)); }); +// Full bundle incl. replay only available for es6 +const replayBaseBundleConfig = makeBaseBundleConfig({ + bundleType: 'standalone', + entrypoints: ['src/index.ts'], + jsVersion: 'es6', + licenseTitle: '@sentry/browser & @sentry/replay', + outputFileBase: () => 'bundles/bundle.replay', + includeReplay: true, +}); + +builds.push(...makeBundleConfigVariants(replayBaseBundleConfig)); + export default builds; diff --git a/packages/tracing/rollup.bundle.config.js b/packages/tracing/rollup.bundle.config.js index b4ac04aa8e76..a0c5bc6cd421 100644 --- a/packages/tracing/rollup.bundle.config.js +++ b/packages/tracing/rollup.bundle.config.js @@ -14,7 +14,7 @@ const builds = []; builds.push(...makeBundleConfigVariants(baseBundleConfig)); }); -// Full bundle incl. replay only avaialable for es6 +// Full bundle incl. replay only available for es6 const replayBaseBundleConfig = makeBaseBundleConfig({ bundleType: 'standalone', entrypoints: ['src/index.bundle.replay.ts'],