es-tooling / ecosystem-cleanup

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

Replace `fast-glob` with `tinyglobby` in Vite #106

Open benmccann opened 2 weeks ago

benmccann commented 2 weeks ago

I can offer a code review for this one and @bluwy also mentioned being supportive of the idea. It would be a good idea to do somewhat soon while 6.0 is in pre-release so that we can do it as part of a major release. Vitest, vitepress, vite-plugin-pwa, and other Vite-affiliated projects have already moved

Depends on https://github.com/SuperchupuDev/tinyglobby/issues/29 and https://github.com/SuperchupuDev/tinyglobby/issues/28

bluwy commented 2 weeks ago

It would be best if we check with the Vite maintainers first, maybe in it's server's contributing channel. I don't have the final say for changes like this.

ziebam commented 2 weeks ago

I've started some work on this locally, waiting for further discussion with vite maintainers and tinyglobby dependencies before pushing though.

benmccann commented 2 weeks ago

Confirmed on the Vite Discord that other maintainers are also supportive. They pointed out though that we'd also need to migrate @rollup/plugin-dynamic-import-vars to get the full benefit, so I've filed an issue for it as well: https://github.com/es-tooling/ecosystem-cleanup/issues/109