es-tooling / ecosystem-cleanup

A place to keep track of ongoing efforts to clean up the JS ecosystem
393 stars 2 forks source link

Replace fast-glob with an alternative in vite #38

Closed 43081j closed 1 week ago

43081j commented 7 months ago

Vite uses fast-glob in a few places. For example:

https://github.com/vitejs/vite/blob/6c323d5b3ab3cdf81d21bbe965ed3c36aa7f0589/packages/vite/src/node/server/warmup.ts#L77-L80

Note that it also uses fast-glob to escape glob-like paths, so they may be fine to keep around.

Everywhere else, we could use a leaner/faster alternative.

Two possible alternatives which are leaner and faster: