diff --git a/packages/rrweb/src/index.ts b/packages/rrweb/src/index.ts index acf8155689..367df3eb5b 100644 --- a/packages/rrweb/src/index.ts +++ b/packages/rrweb/src/index.ts @@ -8,7 +8,7 @@ export { IncrementalSource, MouseInteractions, ReplayerEvents, - type eventWithTime + type eventWithTime, } from '@rrweb/types'; export type { recordOptions } from './types'; diff --git a/packages/rrweb/src/record/observer.ts b/packages/rrweb/src/record/observer.ts index c6b38cbb96..e23e5a1004 100644 --- a/packages/rrweb/src/record/observer.ts +++ b/packages/rrweb/src/record/observer.ts @@ -1297,9 +1297,13 @@ export function initObservers( const inputHandler = initInputObserver(o); const mediaInteractionHandler = initMediaInteractionObserver(o); + // eslint-disable-next-line @typescript-eslint/no-empty-function let styleSheetObserver = () => {}; + // eslint-disable-next-line @typescript-eslint/no-empty-function let adoptedStyleSheetObserver = () => {}; + // eslint-disable-next-line @typescript-eslint/no-empty-function let styleDeclarationObserver = () => {}; + // eslint-disable-next-line @typescript-eslint/no-empty-function let fontObserver = () => {}; if (o.recordDOM) { styleSheetObserver = initStyleSheetObserver(o, { win: currentWindow });