Skip to content

Commit

Permalink
chore: check finalWatchFileSystem.watcher nullability (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
86 authored Nov 22, 2023
1 parent e120a1d commit e33dca4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ class VirtualModulesPlugin {
finalInputFileSystem._writeVirtualFile(modulePath, stats, contents);
if (
finalWatchFileSystem &&
finalWatchFileSystem.watcher &&
(finalWatchFileSystem.watcher.fileWatchers.size || finalWatchFileSystem.watcher.fileWatchers.length)
) {
const fileWatchers =
Expand Down

0 comments on commit e33dca4

Please sign in to comment.