Closed
Description
We’d like to make Rolldown's hook filter utilities introduced in #4346 (and subsequent PRs) available for other tools (like Vite, Rollup, and Unplugin). Right now, the filter logic is built into Rolldown, but it would be helpful to have a standalone JavaScript package for plugin authors.
Simple Hook Filter utils are implemented already but more complex cases like and
and or
are missing so far.
What needs to be done?
- Move the filter function from Rolldown into a new JS package (e.g.,
@rolldown/plugin-utils
or similar). - Re-implement the filter logic in JavaScript
- Make sure the new package works without needing to install Rolldown as dependency.
Goals
- Plugin authors can prepare plugins in the ecosystem with more complex cases
Notes
- We’ll need to keep the filter logic in sync between JS and Rust, but the code is small and manageable.
Metadata
Metadata
Assignees
Labels
No labels