fix: move patch function into utils to improve bundling (#1631)
* fix: move patch function into utils to improve bundling --------- Co-authored-by: pauldambra <pauldambra@users.noreply.github.com> Co-authored-by: Justin Halsall <Juice10@users.noreply.github.com>
This commit is contained in:
@@ -53,6 +53,7 @@
|
||||
"puppeteer": "^20.9.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"rrweb": "^2.0.0-alpha.18"
|
||||
"rrweb": "^2.0.0-alpha.18",
|
||||
"@rrweb/utils": "^2.0.0-alpha.18"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { listenerHandler, RecordPlugin, IWindow } from '@rrweb/types';
|
||||
import { utils } from 'rrweb';
|
||||
import { patch } from '@rrweb/utils';
|
||||
import { ErrorStackParser, StackFrame } from './error-stack-parser';
|
||||
import { stringify } from './stringify';
|
||||
|
||||
@@ -183,7 +183,7 @@ function initLogObserver(
|
||||
};
|
||||
}
|
||||
// replace the logger.{level}. return a restore function
|
||||
return utils.patch(
|
||||
return patch(
|
||||
_logger,
|
||||
level,
|
||||
(original: (...args: Array<unknown>) => void) => {
|
||||
|
||||
Reference in New Issue
Block a user