* Build a human-readable message matching the touch breadcrumb format.
(root: TouchedComponentInfo, label?: string)
| 140 | * Build a human-readable message matching the touch breadcrumb format. |
| 141 | */ |
| 142 | function buildTouchMessage(root: TouchedComponentInfo, label?: string): string { |
| 143 | if (label) { |
| 144 | return label; |
| 145 | } |
| 146 | return `${root.name}${root.file ? ` (${root.file})` : ''}`; |
| 147 | } |
| 148 | |
| 149 | /** |
| 150 | * Build a node object compatible with the web SDK's `ReplayBaseDomFrameData` |