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

inlined wasm violates chrome webstore no obfuscation policy #774

Open
3 of 5 tasks
amk-dev opened this issue Sep 11, 2024 · 1 comment
Open
3 of 5 tasks

inlined wasm violates chrome webstore no obfuscation policy #774

amk-dev opened this issue Sep 11, 2024 · 1 comment

Comments

@amk-dev
Copy link

amk-dev commented Sep 11, 2024

Validations

Describe the bug

I've been using shiki in my chrome extension. but when i submitted to the chrome webstore i got a violation for obfuscated code.

on looking into it, i found its coming from shiki's inlined wasm. ( i'm using vite )

is there anyway to not include the wasm import in my bundle ?
how can i handle this situation ?

image

Reproduction

import and use codeToHtml from the full bundle

import { codeToHtml } from "shiki/bundle/full"

Contributes

  • I am willing to submit a PR to fix this issue
  • I am willing to submit a PR with failing tests
@antfu
Copy link
Member

antfu commented Sep 12, 2024

There is nothing we can do about it, maybe you can try using the JS engine: https://shiki.style/guide/regex-engines#javascript-regexp-engine-experimental be be aware of it's limitations and still experimental

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

No branches or pull requests

2 participants