Skip to content

Commit 5d73fd7

Browse files
authored
fix(normalizePath): windows to POSIX (#304)
1 parent b32d7aa commit 5d73fd7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/core/context.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,17 @@ export class Context {
7373
.on('unlink', (path) => {
7474
if (!matchGlobs(path, globs))
7575
return
76+
77+
path = slash(path)
7678
this.removeComponents(path)
7779
this.onUpdate(path)
7880
})
7981
watcher
8082
.on('add', (path) => {
8183
if (!matchGlobs(path, globs))
8284
return
85+
86+
path = slash(path)
8387
this.addComponents(path)
8488
this.onUpdate(path)
8589
})

0 commit comments

Comments
 (0)