8000 Extract & Port Hook Filter Utilities · Issue #4409 · rolldown/rolldown · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Extract & Port Hook Filter Utilities #4409
Closed
@TheAlexLichter

Description

@TheAlexLichter

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

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0