Skip to content

Commit

Permalink
fix: slash dir glob to support windows match (#376)
Browse files Browse the repository at this point in the history
  • Loading branch information
markthree committed May 16, 2023
1 parent e694050 commit 9071c66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/unplugin.ts
Expand Up @@ -25,7 +25,7 @@ export default createUnplugin<Options>((options) => {
},
vite: {
async handleHotUpdate({ file }) {
if (ctx.dirs?.some(glob => minimatch(slash(file), glob)))
if (ctx.dirs?.some(glob => minimatch(slash(file), slash(glob))))
await ctx.scanDirs()
},
async configResolved(config) {
Expand Down

0 comments on commit 9071c66

Please sign in to comment.