-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Update chokidar to v4 #15302
Comments
@Fuzzyma Hey! Really appreciate the help here, reducing the number of dependencies has been a huge focus for us too for v4. I do think though that we'd rather focus on getting a release for Tailwind CSS v4 out instead. That should also take care of this issue since we're no longer relying on chokidar! I don't think it's going to be trivial either to upgrade to v4 since we're relying on the glob support heavily unfortunately (the Tailwind JS config API accepts a list of globs to the |
Oh I see! Yes, I should have figured that the content prop is powered by chokidars glob. But thanks for the prompt reply and explanation! I am looking forward to the new tailwind version and I hope that most people will upgrade right away :). Keep up the good work!! |
a suggestion on how it could work: use is-glob and tinyglobby and do something like this: chokidar.watch(paths.map(p => isGlob(p) ? tinyglobby(p) : p)) |
Good suggestion. One more on top of that: you don't need |
@philipp-spiess I looked into the code of v3 and it seems like the glob functionality is not actually used. Instead the content paths are resolved via |
I would like to propose to update chokidar to v4. It reduces its dependency count by 11 deps and also brings better type safety.
This is part of the ecosystem cleanup initiative (https://e18e.dev). We try to modernize and declutter the ecosystem as best as we can.
Tailwind is downloaded over 46 million times per month and reducing its dependencies will have a huge impact and will lead to faster install times in ci and on dev machines.
I would be happy to create a PR with the necessary changes if you are open for that :)
PS: Sorry for misusing the bug tracker. I didn't know where to put it
The text was updated successfully, but these errors were encountered: