🎥 Make videos programmatically with React
Use getInfo() instead of deprecated getFileTimeInfoEntries/getContextTimeInfoEntries
Jonny Burgera9a65bf743e1
diff --git a/packages/bundler/src/watch-ignore-next-change-plugin.ts b/packages/bundler/src/watch-ignore-next-change-plugin.tsindex ab6b03a9ab..bac7827279 100644--- a/packages/bundler/src/watch-ignore-next-change-plugin.ts+++ b/packages/bundler/src/watch-ignore-next-change-plugin.ts@@ -76,15 +76,14 @@ export class WatchIgnoreNextChangePlugin {this.dirsToIgnore.add(dir);// Snapshot current timestamps from the watcher BEFORE the file is written- if (this.currentWatcher) {- const fileEntries = this.currentWatcher.getFileTimeInfoEntries();- const fileTs = fileEntries.get(file);+ if (this.currentWatcher?.getInfo) {+ const info = this.currentWatcher.getInfo();+ const fileTs = info.fileTimeInfoEntries.get(file);if (fileTs !== undefined) {this.snapshotFileTimestamps.set(file, fileTs);}- const dirEntries = this.currentWatcher.getContextTimeInfoEntries();- const dirTs = dirEntries.get(dir);+ const dirTs = info.contextTimeInfoEntries.get(dir);if (dirTs !== undefined) {this.snapshotDirTimestamps.set(dir, dirTs);}