diff --git a/.changeset/giant-rats-chew.md b/.changeset/giant-rats-chew.md new file mode 100644 index 0000000000..8f28c5f7b4 --- /dev/null +++ b/.changeset/giant-rats-chew.md @@ -0,0 +1,5 @@ +--- +"rrweb": patch +--- + +Export takeFullSnapshot function for a recording process diff --git a/packages/rrweb/src/index.ts b/packages/rrweb/src/index.ts index 959c5512cb..7039acb68f 100644 --- a/packages/rrweb/src/index.ts +++ b/packages/rrweb/src/index.ts @@ -24,11 +24,13 @@ export type { recordOptions, ReplayPlugin } from './types'; const { addCustomEvent } = record; const { freezePage } = record; +const { takeFullSnapshot } = record; export { Replayer, addCustomEvent, freezePage, + takeFullSnapshot, type playerConfig, type PlayerMachineState, type SpeedMachineState,