Reputation: 133
I am developing a Chrome extension that uses WebAssembly (WASM) files as part of the Shiki syntax highlighting library. These files are essential for providing accurate and performant syntax highlighting capabilities within the extension. This library is actually used by a dependency. However, during the review process, Google has flagged the WASM files as obfuscated code, which is causing my extension to be rejected. At this point I don't know what to do as rewriting the would be quite challenging (dependency of dependency).
This Chrome extension uses WebAssembly (WASM) files as part of the Shiki syntax highlighting library. These files are essential for providing accurate and performant syntax highlighting capabilities within the extension.
Shiki is a syntax highlighting library that provides TextMate grammar-powered syntax highlighting. It's used to create VS Code-like syntax highlighting and is known for its accuracy and performance.
The wasm2.js
file present in our extension is a compiled WebAssembly module that:
We have implemented the following measures to ensure security and transparency:
The WASM module can be verified by:
Given the above context, how can I address Google's concerns about the WASM files being considered obfuscated code? Are there any best practices or additional steps I can take to ensure my extension passes the review process? I am not so familiar with WASM, and I don't have any lead to really solve this issue
Any help or guidance would be greatly appreciated!
Upvotes: 0
Views: 10