dotnet / nuget-trends

Check out NuGet packages adoption and what's trending on NuGet.
https://nugettrends.com
MIT License
144 stars 25 forks source link

Host web worker for Sentry replay #243

Open bruno-garcia opened 7 months ago

bruno-garcia commented 7 months ago

https://docs.sentry.io/platforms/javascript/configuration/tree-shaking/#list-of-flags

__SENTRY_EXCLUDE_REPLAY_WORKER__ Replacing this flag with true will tree shake all code in the SDK that's related to the included compression web worker for Session Replay. This is only relevant when using Session Replay. Enable this flag if you want to host a compression worker yourself - see Using a Custom Compression Worker for details. We do not recommend enabling this flag unless you provide a custom worker URL.

new Replay({
  workerUrl: "/assets/worker.min.js",
});

https://docs.sentry.io/platforms/javascript/session-replay/configuration/#using-a-custom-compression-worker