-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Add support for hook filters #5882
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for hook filters #5882
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #5882 +/- ##
==========================================
+ Coverage 98.55% 98.56% +0.01%
==========================================
Files 269 270 +1
Lines 8588 8663 +75
Branches 1472 1485 +13
==========================================
+ Hits 8464 8539 +75
Misses 92 92
Partials 32 32 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks quite refined, thanks a lot! I only found minor comments.
Thanks for the review, fixed them 👍 |
I ported the two changes on rolldown side (rolldown/rolldown#3972, rolldown/rolldown#3976). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
This PR has been released as part of rollup@4.38.0. You can test it via |
This PR contains:
Are tests included?
Breaking Changes?
List any relevant issue numbers:
Description
This PR adds support for plugin hook filters described in #5869.
The implementation is based on vitejs/vite#19602 which aimed to be compatible with rolldown, but I think we can tweak behaviors in rolldown where it should be improved.
Filter related code in rolldown for reference: https://github.com/rolldown/rolldown/blob/3ad87bf9df910fd1fd69d7fe949169156b1fcf03/crates/rolldown_utils/src/pattern_filter.rs