From 9200e9a4d2f882a7549d21fdda8e5ce3e4af4397 Mon Sep 17 00:00:00 2001 From: Carmen Ghirardi <30652765+lysla@users.noreply.github.com> Date: Sat, 30 Jun 2018 19:52:06 +0200 Subject: [PATCH] Replaced fwd slashes with backslashes for win to fix sass deps watch (#1602) --- src/Bundler.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Bundler.js b/src/Bundler.js index 1bc7351ef44..10a5baf7c02 100644 --- a/src/Bundler.js +++ b/src/Bundler.js @@ -407,12 +407,11 @@ class Bundler extends EventEmitter { } async unwatch(path, asset) { + path = await fs.realpath(path); if (!this.watchedAssets.has(path)) { return; } - path = await fs.realpath(path); - let watched = this.watchedAssets.get(path); watched.delete(asset);