chore(deps): update chokidar to v4 by Fuzzyma · Pull Request #5374 · webpack/webpack-dev-server

alexander-akait

alexander-akait

In order to replace chokidars removed glob functionality, we have to use some trickery.

- `glob-parent` is used to get the common ancenstor dir that needs to be watched.
- `picomatch` is used as ignore-filter to make sure that only files/dirs are watched that match the given glob
- `is-glob` is used to only use glob logic when needed

In total this adds 4 direct or transitive dependencies. However, the update to chokidar v4 removes 12. So its a net positive

I also added a test to ensure that creation of nested directories is detected properly.

@Fuzzyma

alexander-akait

alexander-akait

@Fuzzyma

@Fuzzyma

@Fuzzyma

alexander-akait

@Fuzzyma

@Fuzzyma

@Fuzzyma

@Fuzzyma

@Fuzzyma Fuzzyma marked this pull request as ready for review

December 20, 2024 19:29

@Fuzzyma

@Fuzzyma