rrweb-io / rrweb

record and replay the web
https://www.rrweb.io/
MIT License
16.67k stars 1.42k forks source link

[Bug]: Using RRWeb in chrome extension results in obfuscated code #1578

Open nuwansamaware opened 2 weeks ago

nuwansamaware commented 2 weeks ago

Preflight Checklist

What package is this bug report for?

rrweb

Version

2.0.0-alpha.14

Expected Behavior

I am using rrweb in my chrome extension, and I am not using any minification compiling my extension. However, the output js contains following coming from rrweb usage: const encodedJs = "KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKIC

This is causing chrome web store to reject my extension - which says there cannot be obfuscated code. Any idea how I can resolve this and use rrweb in my extension.

I have attached the decoded version of the code that the above encodedJs refers to. decoded_bitmap.txt

Actual Behavior

When compiled, not to have obfuscated portions of code.

Steps to Reproduce

Include rrweb in extension. Compile. Check the output code

Testcase Gist URL

No response

Additional Information

No response

pauldambra commented 1 week ago

+1 numerous reports of this from folk too we spoke to google dev rel, and it's not a thing they can/will ignore