File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ---
Original file line number Diff line number Diff line change @@ -110,9 +110,17 @@ export function stringifySnapshots(snapshots: eventWithTime[]): string {
110
110
snapshots
111
111
. filter ( ( s ) => {
112
112
if (
113
- s . type === EventType . IncrementalSnapshot &&
114
- ( s . data . source === IncrementalSource . MouseMove ||
115
- s . data . source === IncrementalSource . ViewportResize )
113
+ // mouse move or viewport resize can happen on accidental user interference
114
+ // so we ignore them
115
+ ( s . type === EventType . IncrementalSnapshot &&
116
+ ( s . data . source === IncrementalSource . MouseMove ||
117
+ s . data . source === IncrementalSource . ViewportResize ) ) ||
118
+ // ignore '[vite] connected' messages from vite
119
+ ( s . type === EventType . Plugin &&
120
+ s . data . plugin === 'rrweb/console@1' &&
121
+ ( s . data . payload as { payload : string [ ] } ) ?. payload ?. find ( ( msg ) =>
122
+ msg . includes ( '[vite] connected' ) ,
123
+ ) )
116
124
) {
117
125
return false ;
118
126
}
You can’t perform that action at this time.
0 commit comments