Skip to content

Commit

Permalink
add new size limits
Browse files Browse the repository at this point in the history
  • Loading branch information
mydea committed Sep 3, 2024
1 parent a225a43 commit 52ab4bd
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 8 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
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,9 @@ const feedback = feedbackIntegration({
window.Sentry = Sentry;
window.feedback = feedback;


Sentry.init({
dsn: 'https://[email protected]/1337',
integrations: [
feedback,
],
integrations: [feedback],
});

feedback.attachTo('#custom-feedback-buttom');
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,10 @@ const feedback = feedbackIntegration({
window.Sentry = Sentry;
window.feedback = feedback;


Sentry.init({
dsn: 'https://[email protected]/1337',
debug: true,
integrations: [
feedback,
],
integrations: [feedback],
});

// This should log an error!
Expand Down

0 comments on commit 52ab4bd

Please sign in to comment.