diff --git a/src/core/unplugin.ts b/src/core/unplugin.ts index a5b142be..8c8f1607 100644 --- a/src/core/unplugin.ts +++ b/src/core/unplugin.ts @@ -25,7 +25,7 @@ export default createUnplugin((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) {