Skip to content

Conversation

@AbanoubGhadban
Copy link
Collaborator

@AbanoubGhadban AbanoubGhadban commented Nov 30, 2025

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

Summary by CodeRabbit

  • Chores
    • Added size analysis instrumentation and new build scripts to monitor application bundle size metrics during the development process.

✏️ Tip: You can customize this high-level summary in your review settings.

Add size-limit and its plugins (@size-limit/file, @size-limit/webpack)
to enable bundle size measurement. Also add `size` and `size:json`
npm scripts for local bundle size checking.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Nov 30, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

Added size-limit instrumentation tooling to the project as a runtime dependency alongside webpack and file plugins as dev dependencies. Introduced "size" and "size:json" npm scripts to measure build artifact sizes after building.

Changes

Cohort / File(s) Summary
Size-limit tooling setup
package.json
Added size-limit runtime dependency (^12.0.0) and @size-limit/file, @size-limit/webpack dev dependencies; introduced "size" and "size:json" npm scripts for build size analysis

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~5–10 minutes

  • Verify size-limit version compatibility and stability
  • Confirm npm scripts are syntactically correct and reference appropriate build commands

Possibly related PRs

Suggested labels

review-needed

Poem

🐰 Hop, hop—the bundle now has bounds,
Size-limit keeps our code from straying,
webpack and files in harmony sound,
a rabbit's delight in measuring convey-ing! 🎯

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch add-size-limit-packages

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between a411917 and bf875e3.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (1)
  • package.json (3 hunks)

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@AbanoubGhadban AbanoubGhadban merged commit 58a8268 into master Nov 30, 2025
20 of 21 checks passed
@AbanoubGhadban AbanoubGhadban deleted the add-size-limit-packages branch November 30, 2025 18:46
@claude claude bot mentioned this pull request Nov 30, 2025
3 tasks
justin808 pushed a commit that referenced this pull request Dec 5, 2025
## 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants