Skip to content

Commit 1a9d0fc

Browse files
authored
ci(replay): Ensure replay size limit excludes internal dependencies (#6329)
Note that we _do_ want to keep `rrweb` in there. This gives us a more "correct" representation of the actual size increase to expect when using replay vs. not using it.
1 parent f6555aa commit 1a9d0fc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.size-limit.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,19 +69,22 @@ module.exports = [
6969
path: 'packages/replay/build/npm/dist/index.js',
7070
gzip: true,
7171
limit: '100 KB',
72+
ignore: ['@sentry/browser', '@sentry/utils', '@sentry/core', '@sentry/types'],
7273
},
7374
{
7475
name: '@sentry/replay - Webpack (gzipped + minified)',
7576
path: 'packages/replay/build/npm/dist/index.js',
7677
import: '{ Replay }',
7778
gzip: true,
7879
limit: '100 KB',
80+
ignore: ['@sentry/browser', '@sentry/utils', '@sentry/core', '@sentry/types'],
7981
},
8082
{
8183
name: '@sentry/replay - Webpack (minified)',
8284
path: 'packages/replay/build/npm/dist/index.js',
8385
import: '{ Replay }',
8486
gzip: false,
8587
limit: '300 KB',
88+
ignore: ['@sentry/browser', '@sentry/utils', '@sentry/core', '@sentry/types'],
8689
},
8790
];

0 commit comments

Comments
 (0)