-
Notifications
You must be signed in to change notification settings - Fork 11
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
Expose a function that returns whether a file path matches the glob #64
Comments
will consider adding it, meanwhile do you have any examples of previous work in other glob libraries? |
fast-glob uses |
just wondering, what are the exclusive features that you need that |
I think it's mainly braces expansion support. |
|
Ah, I see. Then, I think I can use |
In Vite, when a file is updated, we check whether that file is included in the glob to know whether the file containing a glob has to be updated.
Links to relevant code
https://github.com/vitejs/vite/blob/802839d48335a69eb15f71f2cd816d0b6e4d3556/packages/vite/src/node/plugins/importMetaGlob.ts#L66-L81
https://github.com/vitejs/vite/blob/802839d48335a69eb15f71f2cd816d0b6e4d3556/packages/vite/src/node/plugins/importMetaGlob.ts#L89-L106
I guess Vite cannot simply use
picomatch
astinyglobby
has more features. It would be nice iftinyglobby
exposes a function that returns whether a file path matches the glob.The text was updated successfully, but these errors were encountered: