Skip to content

Commit 347b4a3

Browse files
AbanoubGhadbanclaude
authored andcommitted
Add size-limit packages for bundle size tracking (#2150)
## Summary - Add size-limit and its plugins (@size-limit/file, @size-limit/webpack) to enable bundle size measurement - Add `size` and `size:json` npm scripts for local bundle size checking This is a prerequisite for the bundle size CI workflow in PR #2149. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude <noreply@anthropic.com>
1 parent a52de14 commit 347b4a3

File tree

2 files changed

+87
-0
lines changed

2 files changed

+87
-0
lines changed

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
"@babel/preset-typescript": "^7.27.1",
2222
"@eslint/compat": "^1.2.8",
2323
"@jest/globals": "^29.7.0",
24+
"@size-limit/file": "^12.0.0",
25+
"@size-limit/webpack": "^12.0.0",
2426
"@swc/core": "^1.15.0",
2527
"@testing-library/dom": "^10.4.0",
2628
"@testing-library/jest-dom": "^6.6.3",
@@ -59,6 +61,7 @@
5961
"react-dom": "18.0.0",
6062
"react-on-rails-rsc": "19.0.2",
6163
"redux": "^4.2.1",
64+
"size-limit": "^12.0.0",
6265
"stylelint": "^16.14.0",
6366
"stylelint-config-standard-scss": "^13.1.0",
6467
"swc-loader": "^0.2.6",
@@ -84,6 +87,8 @@
8487
"eslint": "eslint",
8588
"attw": "attw",
8689
"publint": "publint",
90+
"size": "pnpm run build && size-limit",
91+
"size:json": "pnpm run build && size-limit --json",
8792
"postinstall": "test -f .lefthook.yml && test -d .git && command -v bundle >/dev/null 2>&1 && bundle exec lefthook install || true"
8893
},
8994
"repository": {

pnpm-lock.yaml

Lines changed: 82 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)