Fix the regexp performance issue

Also move the addHoverClass implementation into the rebuild stage.
So if there is still some corner case we have not handled, it will
only affect the replayer part of rrweb.
This commit is contained in:
Yanzhen Yu
2026-04-01 12:00:00 +08:00
parent de8dc60b5e
commit 2065e00c5d
6 changed files with 70 additions and 71 deletions

View File

@@ -32,6 +32,7 @@ export type elementNode = {
export type textNode = {
type: NodeType.Text;
textContent: string;
isStyle?: true;
};
export type cdataNode = {