|
1 | 1 | /* eslint-disable max-lines */ // TODO: We might want to split this file up |
2 | 2 | import type { ReplayRecordingMode, Span } from '@sentry/core'; |
3 | 3 | import { getActiveSpan, getClient, getRootSpan, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, spanToJSON } from '@sentry/core'; |
4 | | -import { EventType, record, utils as rrwebUtils } from '@sentry-internal/rrweb'; |
| 4 | +import { EventType, record } from '@sentry-internal/rrweb'; |
5 | 5 | import { |
6 | 6 | BUFFER_CHECKOUT_TIME, |
7 | 7 | SESSION_IDLE_EXPIRE_DURATION, |
@@ -53,6 +53,7 @@ import { isExpired } from './util/isExpired'; |
53 | 53 | import { isSessionExpired } from './util/isSessionExpired'; |
54 | 54 | import { logger } from './util/logger'; |
55 | 55 | import { resetReplayIdOnDynamicSamplingContext } from './util/resetReplayIdOnDynamicSamplingContext'; |
| 56 | +import { closestElementOfNode } from './util/rrweb'; |
56 | 57 | import { sendReplay } from './util/sendReplay'; |
57 | 58 | import { RateLimitError } from './util/sendReplayRequest'; |
58 | 59 | import type { SKIPPED } from './util/throttle'; |
@@ -1309,7 +1310,7 @@ export class ReplayContainer implements ReplayContainerInterface { |
1309 | 1310 | if (ignoreMutations?.length) { |
1310 | 1311 | if ( |
1311 | 1312 | mutations.some(mutation => { |
1312 | | - const el = rrwebUtils.closestElementOfNode(mutation.target); |
| 1313 | + const el = closestElementOfNode(mutation.target); |
1313 | 1314 | const selector = ignoreMutations.join(','); |
1314 | 1315 | return el?.matches(selector); |
1315 | 1316 | }) |
|
0 commit comments