Skip to content

Conversation

@KazariEX
Copy link

resolve #31

@KazariEX
Copy link
Author

@pi0 Hi, do you have time to look at this repo?

@jswhisperer
Copy link

Hi @KazariEX I'm looking for a solution like this also, I was trying to use the CDN instead, but it won't build.

I was wondering with your PR would it still bundle the whole library in the build... it is too big for CloudFlare Workers with all langs.

@KazariEX
Copy link
Author

KazariEX commented May 24, 2025

You can use await import("https://esm.sh/shiki/langs") to avoid full bundling.

@jswhisperer
Copy link

Ahh yeah that works, I was doing that I think I'm having an unrelated bug,
nuxt.hub cloudflare mode tries to bundle remote urls and fails weirdly
but thats a diff issue

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

Successfully merging this pull request may close these issues.

Dynamically loading language as needed

2 participants