Skip to content

Allow overriding theme-internal components from .vitepress/theme without Vite alias #5344

Description

@lorlike

Is your feature request related to a problem? Please describe.

I want to be able to fully customize the theme from the .vitepress/theme directory only, without changing any files outside that directory (including build/config files such as vite.config.js).

Describe the solution you'd like

Allow adding a configuration file inside the theme that can remap or override internal theme component imports (i.e. provide alias-like behavior from within the theme).

Describe alternatives you've considered

No response

Additional context

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions