This PR deals with refactoring code to allow for the least amount of obfuscation to take place while bundling.
Chrome Web Store has been rejecting the last 2 releases of the extension requiring us to reduce obfuscation, the content they flagged was how contentScript.js has encoded in the final bundle, as a Base64-ed string calculated as an argument to Buffer.from.
What's changed
Add @parcel/transformer-inline-string dev dependency
Add lit as a dependency since that has the unsafeSVG import now.
Updated build:chrome and build:firefox to pass --no-optimize to ask Parcel to not optimize and minify.
Removed fs -> fs.readFileSync based text imports into bundle-text:* imports.
This PR deals with refactoring code to allow for the least amount of obfuscation to take place while bundling.
Chrome Web Store has been rejecting the last 2 releases of the extension requiring us to reduce obfuscation, the content they flagged was how
contentScript.js
has encoded in the final bundle, as a Base64-ed string calculated as an argument toBuffer.from
.What's changed
@parcel/transformer-inline-string
dev dependencylit
as a dependency since that has theunsafeSVG
import now.build:chrome
andbuild:firefox
to pass--no-optimize
to ask Parcel to not optimize and minify.fs
->fs.readFileSync
based text imports intobundle-text:*
imports.