Skip to content

Commit 631793d

Browse files
committed
ref: Add size check for tracing and react
1 parent 3fa7d40 commit 631793d

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

.size-limit.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,20 @@ module.exports = [
77
},
88
{
99
name: '@sentry/browser - Webpack',
10-
path: 'packages/browser/dist/index.js',
10+
path: 'packages/browser/esm/index.js',
1111
import: '{ init }',
1212
limit: '18 KB',
1313
},
14+
{
15+
name: '@sentry/react - Webpack',
16+
path: 'packages/react/esm/index.js',
17+
import: '{ init }',
18+
limit: '19 KB',
19+
},
20+
{
21+
name: '@sentry/browser + @sentry/tracing - CDN Bundle (gzipped)',
22+
path: 'packages/tracing/build/bundle.tracing.min.js',
23+
gzip: true,
24+
limit: '23 KB',
25+
},
1426
];

scripts/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ if [[ "$(cut -d. -f1 <<< "$TRAVIS_NODE_VERSION")" -le 6 ]]; then
1212
elif [[ "$(cut -d. -f1 <<< "$TRAVIS_NODE_VERSION")" -le 8 ]]; then
1313
yarn install --ignore-engines --ignore-scripts
1414
yarn build
15-
yarn test --ignore="@sentry/tracing"
15+
yarn test --ignore="@sentry/tracing" --ignore="@sentry/react"
1616
else
1717
yarn install
1818
yarn build

0 commit comments

Comments
 (0)