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

Support different bundles for shiki to reduce bundle size #2821

Open
itpropro opened this issue Oct 21, 2024 · 0 comments
Open

Support different bundles for shiki to reduce bundle size #2821

itpropro opened this issue Oct 21, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@itpropro
Copy link
Contributor

Currently, shiki adds quite a lot of overhead to the client bundle when highlighting is used somewhere in the application (MDC or Nuxt UI components for example).
It would help to support different bundles, maybe even fine grained bundles to be able to control the bundle size.
It could even be possible to automatically generate a fine grained bundle by storing the referenced langs from the content pages and creating dynamic imports only for the languages used in content files and/or global configuration.

@itpropro itpropro added the enhancement New feature or request label Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant