Skip to content

Commit 37fd926

Browse files
arredgroupjeffdnguyen
authored andcommitted
[Feature] Include takeFullSnapshot function in rrweb (rrweb-io#1527)
* export takeFullSnapshot function in rrweb
1 parent 865264c commit 37fd926

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.changeset/giant-rats-chew.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"rrweb": patch
3+
---
4+
5+
Export takeFullSnapshot function for a recording process

packages/rrweb/src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,13 @@ export type { recordOptions, ReplayPlugin } from './types';
2424

2525
const { addCustomEvent } = record;
2626
const { freezePage } = record;
27+
const { takeFullSnapshot } = record;
2728

2829
export {
2930
record,
3031
addCustomEvent,
3132
freezePage,
33+
takeFullSnapshot,
3234
Replayer,
3335
type playerConfig,
3436
type PlayerMachineState,

0 commit comments

Comments
 (0)