Skip to content

Commit

Permalink
Revert "remove size limit"
Browse files Browse the repository at this point in the history
This reverts commit 4386e42.
  • Loading branch information
mydea committed Sep 3, 2024
1 parent 4386e42 commit e0ea51c
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .size-limit.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,25 @@ module.exports = [
gzip: true,
limit: '24 KB',
},
{
name: '@sentry/browser - with treeshaking flags',
path: 'packages/browser/build/npm/esm/index.js',
import: createImport('init'),
gzip: true,
limit: '24 KB',
modifyWebpackConfig: function (config) {
const webpack = require('webpack');
config.plugins.push(
new webpack.DefinePlugin({
__SENTRY_DEBUG__: false,
__RRWEB_EXCLUDE_SHADOW_DOM__: true,
__RRWEB_EXCLUDE_IFRAME__: true,
__SENTRY_EXCLUDE_REPLAY_WORKER__: true,
}),
);
return config;
},
},
{
name: '@sentry/browser (incl. Tracing)',
path: 'packages/browser/build/npm/esm/index.js',
Expand Down

0 comments on commit e0ea51c

Please sign in to comment.