Skip to content

Commit 9be7284

Browse files
authored
build(ui): Upgrade size-limit to v5 (getsentry#28974)
1 parent eadcd2b commit 9be7284

File tree

4 files changed

+204
-667
lines changed

4 files changed

+204
-667
lines changed

.github/dependabot.yml

-2
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ updates:
5252
# We ignore everything that hasn't yet been upgrade, this way we will
5353
# only get the _freshest_ of new packages to consider upgrading
5454
- dependency-name: "@sentry/release-parser"
55-
- dependency-name: "@size-limit/preset-small-lib"
5655
- dependency-name: "@types/echarts"
5756
- dependency-name: "@types/marked"
5857
- dependency-name: "@types/react-router"
@@ -87,6 +86,5 @@ updates:
8786
- dependency-name: "reflux"
8887
- dependency-name: "rrweb"
8988
- dependency-name: "rrweb-player"
90-
- dependency-name: "size-limit"
9189
- dependency-name: "sprintf-js"
9290
- dependency-name: "u2f-api"

.size-limit.js

+4-11
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,14 @@
11
module.exports = [
22
{
3-
path: ['public/app.js'],
4-
limit: '500KB',
3+
path: ['src/sentry/static/sentry/dist/entrypoints/app.js'],
4+
limit: '220KB',
55
webpack: false,
66
gzip: true,
77
brotli: false,
88
},
99
{
10-
path: ['public/vendor.js'],
11-
limit: '1.0MB',
12-
webpack: false,
13-
gzip: true,
14-
brotli: false,
15-
},
16-
{
17-
path: ['public/sentry.css'],
18-
limit: '50KB',
10+
path: ['src/sentry/static/sentry/dist/entrypoints/sentry.css'],
11+
limit: '270KB',
1912
webpack: false,
2013
gzip: true,
2114
brotli: false,

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@
138138
"devDependencies": {
139139
"@babel/plugin-transform-react-jsx-source": "^7.14.5",
140140
"@pmmmwh/react-refresh-webpack-plugin": "^0.4.2",
141-
"@size-limit/preset-small-lib": "^4.10.2",
141+
"@size-limit/preset-small-lib": "^5.0.5",
142142
"@storybook/addon-a11y": "6.3.7",
143143
"@storybook/addon-actions": "6.3.7",
144144
"@storybook/addon-essentials": "6.3.7",
@@ -172,7 +172,7 @@
172172
"react-refresh": "^0.8.3",
173173
"react-select-event": "5.3.0",
174174
"react-test-renderer": "17.0.2",
175-
"size-limit": "^4.5.6",
175+
"size-limit": "^5.0.5",
176176
"speed-measure-webpack-plugin": "^1.5.0",
177177
"stylelint": "13.13.1",
178178
"stylelint-config-prettier": "^8.0.2",

0 commit comments

Comments
 (0)