Skip to content

Commit

Permalink
feat(replay): Use fflate instead of pako for compression
Browse files Browse the repository at this point in the history
According to their own benchmarks (https://www.npmjs.com/package/fflate), this should be faster, and have a smaller bundle size.
  • Loading branch information
mydea committed Nov 2, 2023
1 parent 4babd02 commit d4cab1e
Show file tree
Hide file tree
Showing 16 changed files with 870 additions and 4,091 deletions.
1 change: 1 addition & 0 deletions packages/browser-integration-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
"devDependencies": {
"@types/glob": "8.0.0",
"@types/node": "^14.6.4",
"@types/pako": "^2.0.0",
"glob": "8.0.3"
},
"volta": {
Expand Down
6 changes: 6 additions & 0 deletions packages/replay-worker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,9 @@ This is an internal package that is used by @sentry/replay.
It generates a web worker and converts it to a string, so that we can process it easier in replay.

By extracting this into a dedicated (private, internal) package, we can streamline the build of replay.

## Example Worker

You can find an example worker for if you want to self-host the compression worker in [/examples](./examples/).

This is generated from the actual soure via `yarn build:examples`, which should be run manually whenever replay-worker is updated.
Loading

0 comments on commit d4cab1e

Please sign in to comment.