Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

younggglcy
Copy link
Contributor

@younggglcy younggglcy commented May 3, 2025

This PR contains:

  • bugfix
  • feature
  • refactor
  • documentation
  • other

Are tests included?

  • yes (bugfixes and features will not be merged without tests)
  • no

Breaking Changes?

  • yes (breaking changes will not be merged unless absolutely necessary)
  • no

List any relevant issue numbers:

Description

#5768 describes why we need to do this.

If chaining plugin hooks' call occurs, skip will record called plugins, thus we can break the infinity loop by find matching skippedCall in skip

Copy link

vercel bot commented May 3, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
rollup ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 24, 2025 5:02am

Copy link

codecov bot commented May 3, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.77%. Comparing base (605ec27) to head (e4163b0).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #5945   +/-   ##
=======================================
  Coverage   98.77%   98.77%           
=======================================
  Files         270      270           
  Lines        8727     8731    +4     
  Branches     1505     1507    +2     
=======================================
+ Hits         8620     8624    +4     
  Misses         73       73           
  Partials       34       34           

☔ View full report in Codecov by Sentry.
📢 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.

Copy link
Member

@lukastaegert lukastaegert left a comment

Choose a reason for hiding this comment

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

Thanks a lot! Two comments from my side, but in general I agree this is the correct solution and I do not see how we could easily achieve the same effect extending the existing logic.

@lukastaegert
Copy link
Member

Sorry for the long wait. I kept pondering if another approach would be less surprising where we skip plugin hooks for extended criteria, but I still keep coming back that your solution is probably the best compromise, so I will merge it now.

@lukastaegert lukastaegert enabled auto-merge May 24, 2025 05:12
@lukastaegert lukastaegert added this pull request to the merge queue May 24, 2025
Merged via the queue into rollup:master with commit 9f4abf1 May 24, 2025
40 checks passed
Copy link

This PR has been released as part of [email protected]. You can test it via npm install rollup.

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.

skipSelf: true does not skip the plugin if it has been called before with the same id and importer
2 participants