feat: add bundled rrweb snapshot

This commit is contained in:
Rohit
2025-06-23 12:15:01 +05:30
parent 37cdb9c393
commit 5f533d7624
3 changed files with 13 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
const esbuild = require('esbuild');
esbuild.build({
entryPoints: ['rrweb-entry.js'],
bundle: true,
minify: true,
outfile: 'rrweb-bundle.js',
format: 'iife', // so that rrwebSnapshot is available on window
globalName: 'rrwebSnapshotBundle'
}).catch(() => process.exit(1));

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,2 @@
import { snapshot } from 'rrweb-snapshot';
window.rrwebSnapshot = { snapshot };