Skip to content

Conversation

@AbanoubGhadban
Copy link
Collaborator

@AbanoubGhadban AbanoubGhadban commented Nov 30, 2025

Summary

  • Add .size-limit.json with configuration for measuring bundle sizes of all packages
  • Includes raw, gzip, and brotli measurements
  • Includes webpack bundled sizes for client imports

This is a prerequisite for the bundle size CI workflow in PR #2149.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Chores
    • Added bundle size auditing configuration to track and monitor build artifact sizes across multiple compression formats.

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

Add .size-limit.json with configuration for measuring bundle sizes of:
- react-on-rails (raw, gzip, brotli)
- react-on-rails-pro (raw, gzip, brotli)
- react-on-rails-pro-node-renderer (raw, gzip, brotli)
- Client bundled sizes for webpack imports

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>
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Nov 30, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

A new .size-limit.json configuration file is introduced containing multiple size audit entries for JavaScript bundles. The file specifies size limits with compression modes (gzip and brotli) for react-on-rails library variants and client bundle artifacts, with no modifications to existing code.

Changes

Cohort / File(s) Summary
Configuration
\.size-limit\.json
New size-limit configuration file with multiple entries defining size constraints for react-on-rails library bundles, react-on-rails-pro-node-renderer bundles, and client bundles (ReactOnRails, registerServerComponent, wrapServerComponentRenderer) across raw, gzip, and brotli compression modes

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

Suggested labels

review-needed, full-ci

Poem

🐰 A bunny hops through configs with glee,
Size limits now measured—gzip and brotli!
React bundles checked in compression array,
All artifacts counted in every which way! 📦✨

✨ 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-config

📜 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 58a8268 and fdeb0de.

📒 Files selected for processing (1)
  • .size-limit.json (1 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 b726df0 into master Nov 30, 2025
20 of 21 checks passed
@AbanoubGhadban AbanoubGhadban deleted the add-size-limit-config branch November 30, 2025 19:13
justin808 pushed a commit that referenced this pull request Dec 5, 2025
## Summary
- Add `.size-limit.json` with configuration for measuring bundle sizes
of all packages
- Includes raw, gzip, and brotli measurements
- Includes webpack bundled sizes for client imports

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