Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🔥 [RUMF-1198] remove problematic and useless code from the DeflateWorker #1378

Merged
merged 2 commits into from
Mar 7, 2022

Conversation

BenoitZugmeyer
Copy link
Member

@BenoitZugmeyer BenoitZugmeyer commented Mar 4, 2022

Motivation

In some cases, where a Browser SDK user is using babel on their dependencies, it can lead to a broken Session Replay recorder because some helpers inserted by Babel are not accessible in the worker.

Changes

  • enable ESLint in the DeflateWorker, to spot unused code paths
  • Remove problematic and useless code from the DeflateWorker

Testing

  • Local
  • Staging
  • Unit
  • End to end

I have gone over the contributing documentation.

@BenoitZugmeyer BenoitZugmeyer requested review from a team as code owners March 4, 2022 17:20
I needed to reformat some comments to comply with the line size limit.
While those comments are cryptic and probably not helpful for us, they
are present in Pako source code. I chose to keep them, but maybe we
could remove them instead.
This commit removes the ability to pass options to the `Deflate` class.
It's fine, because we never do. This allows to remove some problematic
"helper" functions causing issues when customers are transpiling the RUM
package with babel.
@BenoitZugmeyer BenoitZugmeyer force-pushed the benoit/remove-typeof-from-deflate-worker branch from f4aa639 to 407ae76 Compare March 7, 2022 09:05
@BenoitZugmeyer BenoitZugmeyer merged commit 50f3844 into main Mar 7, 2022
@BenoitZugmeyer BenoitZugmeyer deleted the benoit/remove-typeof-from-deflate-worker branch March 7, 2022 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants