Skip to content

refactor: use object hook filters #1132

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

Merged
merged 5 commits into from
Jun 6, 2025
Merged

refactor: use object hook filters #1132

merged 5 commits into from
Jun 6, 2025

Conversation

dominikg
Copy link
Member

@dominikg dominikg commented Jun 5, 2025

This allows earlier exit and helps with performance, esp. in rolldown-vite where less context switching between rust and js happens.

The resolveId hook filter in particular is a lot easier now.

One big change is that the way include works, it no longer combines "include" AND "extensions" but now it is "include" OR "extensions".

Users who need more control have to update their config to use exclude patterns ensuring the previous behavior.

@dominikg dominikg merged commit 7af3cd2 into main Jun 6, 2025
7 checks passed
@dominikg dominikg deleted the refactor/hook-filters branch June 6, 2025 17:35
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