Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix windows ignore when using anymatch@2
Fixes #668 Chokidar@2 includes anymatch@2 which has a (potentially) breaking change as described in the changelog: https://github.com/micromatch/anymatch#change-log When the `cwd` is set Chokidar will join the ignore pattern to the cwd, and if this isn't absolute, it causes `anymatch` to fail: ```js // where cwd = c:\Users\remy\ anymatch('C:\\Users\\remy\\**\\node_modules\\**', 'C:\\Users\\remy\\node_modules\\project'); // === false ``` https://runkit.com/embed/rn05fobk294p So this change adds the upath module (used by Chokidar during testing and about 35K footprint) to normalize the path to bash-like slashes which corrects the issue.
- Loading branch information