Skip to content

Commit

Permalink
feat: chunk mermaid
Browse files Browse the repository at this point in the history
  • Loading branch information
bojanrajh committed Aug 22, 2024
1 parent 9bd1ddb commit e001ac0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,13 @@ export default withMermaid(defineConfigWithTheme<ThemeConfig>({
},*/
build: {
rollupOptions: {
output: {
manualChunks(id) {
if (id.includes('mermaid')) {
return 'mermaid';
}
}
},
external: [
'vue-instantsearch/vue3/es',
'instantsearch.css/themes/algolia-min.css',
Expand Down

0 comments on commit e001ac0

Please sign in to comment.