Skip to content

Commit 53a53b9

Browse files
authored
fix: ensure compiler.changedFiles is the file path (#42)
1 parent 05e1ae1 commit 53a53b9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/watch/inclusive-node-watch-file-system.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ class InclusiveNodeWatchFileSystem implements WatchFileSystem {
187187
this.deletedFiles.delete(file);
188188
updateFilesChange(this.compiler, { changedFiles: [file] });
189189

190-
this.watcher?._onChange(dirToWatch, stats?.mtimeMs || stats?.ctimeMs || 1, file, 'rename');
190+
this.watcher?._onChange(file, stats?.mtimeMs || stats?.ctimeMs || 1, file, 'rename');
191191
});
192192
dirWatcher.on('unlink', (file) => {
193193
if (this.paused) {

0 commit comments

Comments
 (0)