Closed Namchee closed 1 month ago
for better fast-glob compatibility you can set the expandDirectories
option to false
btw
Few questions -
nit: the "TB saved" thing in description isn't correct. It will only save ~1 GB / wk. (The bundled + gz size difference is 13KB x 80K vitepress downloads / wk.)
pnpm add https://pkg.pr.new/vitepress@4132
commit: 87c4448
Is there any benchmark of fast-glob vs tinyglobby?
They're pretty comparable. I've generally seen that tinyglobby
is a bit faster though it can depend on the file structure being searched, glob pattern, etc.
Is vite planning to migrate away from fast-glob too? Is there any attempt in vite's repo to replace the package that passes their tests?
I think that would be nice to do and would be happy to review any PRs in the Vite repo and @bluwy said he'd be supportive of trying it as well. I've filed a couple of feature requests with tinyglobby
to make the migration path easier as Vite uses some uncommon functionality of fast-glob
. We might be able to just replicate that functionality directly in Vite with a couple of small utility methods, but if tinyglobby
can add support that'd be easiest for us
Description
This pull request replaces
fast-glob
withtinyglobby
to reduce dependency size while keeping the same behaviorLinked Issues
Additional Context