Files
rrweb/packages/rrweb-snapshot/src/index.ts
Francesco Novy 42c9f53602 feat: Ignore autoplay attribute on video/audio elements (#1152)
* feat: Ignore `autoplay` attribute on video/auto elements

This element leads to weird issues when replaying, so it's better to strip this out.

* add changeset

* fix check


fix typo

* Apply formatting changes

---------

Co-authored-by: mydea <mydea@users.noreply.github.com>
2026-04-01 12:00:00 +08:00

36 lines
596 B
TypeScript

import snapshot, {
serializeNodeWithId,
transformAttribute,
ignoreAttribute,
visitSnapshot,
cleanupSnapshot,
needMaskingText,
classMatchesRegex,
IGNORED_NODE,
genId,
} from './snapshot';
import rebuild, {
buildNodeWithSN,
addHoverClass,
createCache,
} from './rebuild';
export * from './types';
export * from './utils';
export {
snapshot,
serializeNodeWithId,
rebuild,
buildNodeWithSN,
addHoverClass,
createCache,
transformAttribute,
ignoreAttribute,
visitSnapshot,
cleanupSnapshot,
needMaskingText,
classMatchesRegex,
IGNORED_NODE,
genId,
};