Skip to content

Commit 9200e9a

Browse files
lysladevongovett
authored andcommitted
Replaced fwd slashes with backslashes for win to fix sass deps watch (#1602)
1 parent 6ccaf6d commit 9200e9a

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/Bundler.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,12 +407,11 @@ class Bundler extends EventEmitter {
407407
}
408408

409409
async unwatch(path, asset) {
410+
path = await fs.realpath(path);
410411
if (!this.watchedAssets.has(path)) {
411412
return;
412413
}
413414

414-
path = await fs.realpath(path);
415-
416415
let watched = this.watchedAssets.get(path);
417416
watched.delete(asset);
418417

0 commit comments

Comments
 (0)