Skip to content

How can I keep /packages/replay-worker/examples/worker.min.js up-to-date in my codebase when it seems like it comes from an internal package? #9572

Answered by mydea
philwolstenholme asked this question in Q&A
Discussion options

You must be logged in to vote

Hey there! You cannot use the file from the package, you have to copy the file and host it yourself. This is documented here:
https://docs.sentry.io/platforms/javascript/session-replay/configuration/#using-a-custom-compression-worker

The version is included in the file, but we only update the version when we actually update the worker script. So this will not change for each version, but you can easily see if the script has changed by comparing the version you have with the version in the repo :) Hope that helps!

(FWIW imho the process with a postinstall hook sounds decent to me! 👍 )

Replies: 4 comments 6 replies

Comment options

You must be logged in to vote
5 replies
@bruno-garcia
Comment options

@mydea
Comment options

@bruno-garcia
Comment options

@philwolstenholme
Comment options

@bruno-garcia
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@philwolstenholme
Comment options

Answer selected by philwolstenholme
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants