Skip to content

Commit abe7420

Browse files
committed
feat(replay): Use fflate instead of pako for compression
According to their own benchmarks (https://www.npmjs.com/package/fflate), this should be faster, and have a smaller bundle size.
1 parent d8beaa0 commit abe7420

File tree

16 files changed

+870
-4091
lines changed

16 files changed

+870
-4091
lines changed

packages/browser-integration-tests/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
"devDependencies": {
6060
"@types/glob": "8.0.0",
6161
"@types/node": "^14.6.4",
62+
"@types/pako": "^2.0.0",
6263
"glob": "8.0.3"
6364
},
6465
"volta": {

packages/replay-worker/README.md

+6
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,9 @@ This is an internal package that is used by @sentry/replay.
1010
It generates a web worker and converts it to a string, so that we can process it easier in replay.
1111

1212
By extracting this into a dedicated (private, internal) package, we can streamline the build of replay.
13+
14+
## Example Worker
15+
16+
You can find an example worker for if you want to self-host the compression worker in [/examples](./examples/).
17+
18+
This is generated from the actual soure via `yarn build:examples`, which should be run manually whenever replay-worker is updated.

0 commit comments

Comments
 (0)