We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b28261b commit 87647bbCopy full SHA for 87647bb
1 file changed
src/watch-run.ts
@@ -39,10 +39,12 @@ export function makeWatchRun(
39
continue;
40
}
41
42
- // Webpack may provide entries without timestamp values; skip those.
+ // Webpack versions can provide timestamp values as a number or object.
43
const fileTime =
44
- ('timestamp' in date ? date.timestamp : undefined) ??
45
- ('safeTime' in date ? date.safeTime : undefined);
+ typeof date === 'object'
+ ? ('timestamp' in date ? date.timestamp : undefined) ??
46
+ ('safeTime' in date ? date.safeTime : undefined)
47
+ : undefined;
48
49
if (fileTime === undefined || fileTime <= lastTime) {
50
0 commit comments