Skip to content

Commit

Permalink
Merge pull request #254 from Blithe-Chiang/fix-watch-issue
Browse files Browse the repository at this point in the history
fix: watch mode not working on Windows
  • Loading branch information
mizdra authored May 26, 2024
2 parents 6133916 + 87fb6c6 commit 3ed4fdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/happy-css-modules/src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export async function exists(path: string): Promise<boolean> {
}

export function isMatchByGlob(filePath: string, pattern: string, options: { cwd: string }): boolean {
return minimatch(filePath, join(options.cwd, pattern));
return minimatch(filePath, join(options.cwd, pattern), { windowsPathsNoEscape: true });
}

export function getPackageJson() {
Expand Down

0 comments on commit 3ed4fdd

Please sign in to comment.