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
2018-11-01 11:36:25 +08:00
parent 5904050cd2
commit 216d03dae3
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 = {