Skip to content

Support different bundles for shiki to reduce bundle size #2821

Open
@itpropro

Description

@itpropro

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions