Skip to content

watch: fix reloading for rebuild/compiled files

TLDR; I was trying to use --watch in a JS project that requires code from a build/*.js module that is transpiled with tsc but the watcher would not trigger a reloading once the file was regenerated. Having a sticky list of filtered files fixes that.


When watching folders that contain files that result from a build step, e.g: TypeScript output, stored template result, etc. The watcher will not reload the application in case one of these resulting files gets regenerated, given that when these files are removed they're no longer tracked by the watcher.

This changeset enables reloading the app when changing files that result from a build step by removing the reset of the tracked filtered files on every reload. Fixing the ability to watch and reload the app when a previously-known output file is changed.

cc @MoLow

Merge request reports

Loading