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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
CloudFlare workers support #247
Comments
I manage to patch both Everything works fine with
Here is some info about patches:
|
@farnabaz any progress since you started? I recompiled the WASM with |
I think we could add a method for the user to load WebAssembly module manually. Then CF Worker users could upload WASM file and load the module by |
Made a fork rewrite https://github.com/antfu/shikiji that enables the CF support. Also opened proposal #510 to have them back to Shiki. Feedback appreciated ;) |
@antfu now that things are merged back to Shiki, is there any extra steps (e.g. creating a CF worker) needed to utilize Shiki highlighting via Everything works fine for me locally, but Shiki doesn't init for me when the page is deployed. |
Here's the open issue and linked reproduction: nuxt-modules/mdc#159 |
Hello @octref 馃槃
Thanks for this amazing project!
We are trying to use it as a syntax highlighter on the Docus project at NuxtLabs, which will most likely be ported as @nuxt/content v2 at some point.
We are using latest updates from Nuxt (Nuxt 3 beta and Nuxt Bridge) in that project, as this is made to be deployed on a CloudFlare worker environment.
While using Shiki, we encountered an issue in which it fallbacks to Node loader as it does not detect CloudFlare environment.
Here is the line that seem to be in cause:
https://github.com/shikijs/shiki/blob/main/packages/shiki/src/loader.ts#L49
Is CloudFlare Workers support planned for Shiki?
If so, maybe we could help on a PR supporting that use case!
cc: @farnabaz
The text was updated successfully, but these errors were encountered: