Skip to content

fix: restore browser targets#24

Merged
zombieJ merged 3 commits into
react-component:masterfrom
QDyanbing:fix-father-plugin-targets
Jun 9, 2026
Merged

fix: restore browser targets#24
zombieJ merged 3 commits into
react-component:masterfrom
QDyanbing:fix-father-plugin-targets

Conversation

@QDyanbing

Copy link
Copy Markdown

Summary

  • Upgrade to the latest rc father plugin publish flow.
  • Restore the browser compile target to the previous Father default with targets: { ie: 11 }.
  • Prevent modern syntax from leaking into the published es and lib output for older webpack parsers.

Root Cause

@rc-component/father-plugin@2.2.0 defaults targets to { chrome: 85 }, which is newer than the previous Father browser default. Without an explicit override, the published output can keep syntax that older webpack parsers cannot parse.

Verification

  • npm run compile
  • acorn@6 parses all generated es and lib JavaScript files after the fix
  • npm test -- --runInBand

@coderabbitai

coderabbitai Bot commented Jun 9, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@QDyanbing, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 44 minutes and 45 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 898993e0-0103-4a1f-9333-0723ef784264

📥 Commits

Reviewing files that changed from the base of the PR and between aa66905 and 0bf9c2b.

📒 Files selected for processing (1)
  • .fatherrc.js
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the build and release configuration by targeting IE 11 in .fatherrc.js, upgrading @rc-component/father-plugin to ^2.2.0, and replacing the np package with @rc-component/np in package.json. No review comments were provided, and there is no additional feedback.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@codecov

codecov Bot commented Jun 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.41%. Comparing base (aa66905) to head (0bf9c2b).

Additional details and impacted files
@@           Coverage Diff           @@
##           master      #24   +/-   ##
=======================================
  Coverage   82.41%   82.41%           
=======================================
  Files          25       25           
  Lines         654      654           
  Branches      238      236    -2     
=======================================
  Hits          539      539           
  Misses        114      114           
  Partials        1        1           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@zombieJ zombieJ merged commit 0b01399 into react-component:master Jun 9, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants