Switch to `tinyglobby` to match `vite`
https://github.com/search?q=repo%3AElMassimo%2Fvite_ruby%20fast-glob&type=code
Vite uses tinyglobby, which has only 2 dependencies compared to 17 dependencies for fast-glob. Using the same library as Vite will allow the dependency to be deduped
Hi Ben, thanks for the heads up!
Does tinyglobby provide the same API as fast-glob? Based on the readme, it looks like this should be a quick change.
Yep. It's compatible with both globby and fast-glob. It uses the default value of expandDirectories that globby uses, so when switching from fast-glob it is recommended to set expandDirectories: false. The other thing to note is that it uses named imports so change import glob from 'fast-glob' to import { glob } from 'tinyglobby'. Those should be the only things that would need to be changed