Skip to content

Commit e0ea51c

Browse files
committed
Revert "remove size limit"
This reverts commit 4386e42.
1 parent 4386e42 commit e0ea51c

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.size-limit.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,25 @@ module.exports = [
1010
gzip: true,
1111
limit: '24 KB',
1212
},
13+
{
14+
name: '@sentry/browser - with treeshaking flags',
15+
path: 'packages/browser/build/npm/esm/index.js',
16+
import: createImport('init'),
17+
gzip: true,
18+
limit: '24 KB',
19+
modifyWebpackConfig: function (config) {
20+
const webpack = require('webpack');
21+
config.plugins.push(
22+
new webpack.DefinePlugin({
23+
__SENTRY_DEBUG__: false,
24+
__RRWEB_EXCLUDE_SHADOW_DOM__: true,
25+
__RRWEB_EXCLUDE_IFRAME__: true,
26+
__SENTRY_EXCLUDE_REPLAY_WORKER__: true,
27+
}),
28+
);
29+
return config;
30+
},
31+
},
1332
{
1433
name: '@sentry/browser (incl. Tracing)',
1534
path: 'packages/browser/build/npm/esm/index.js',

0 commit comments

Comments
 (0)