Skip to content

Optimize loading of chunks/components - #1754

Open
slusarz wants to merge 4 commits into
dovecot:mainfrom
slusarz:components_nonglobal_load
Open

slusarz wants to merge 4 commits into
dovecot:mainfrom
slusarz:components_nonglobal_load

Conversation

@slusarz

@slusarz slusarz commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

DOV-10356

Hasn't been used in 2 years since
6d96c3a
Globally registering all Vue components caused VitePress to bundle
all components and their JSON data into the initial home page load.

Remove global registration, add the @components Vite alias, import
components per page via <script setup>, update DoveadmComponent to
import its child components directly, and document this in README.md.
Statically importing vitepress-mermaid-renderer in DovecotLayout.vue,
combined with the blanket node_modules -> vendor rule in manualChunks,
bundled Mermaid and its diagram renderers into app.js (~5.3 MB) on
every page load.

Remove global Mermaid initialization from DovecotLayout.vue, drop the
node_modules vendor catch-all in manualChunks, add a useMermaid()
helper in components/mermaid.js, call it from submission.md, and
document this in README.md.
@github-actions

This comment has been minimized.

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.

1 participant