Skip to content

Commit 56c383a

Browse files
committed
website: modify vite config.
1 parent 8340795 commit 56c383a

File tree

1 file changed

+42
-18
lines changed

1 file changed

+42
-18
lines changed

Diff for: website/vite.config.ts

+42-18
Original file line numberDiff line numberDiff line change
@@ -25,46 +25,70 @@ export default defineConfig({
2525
output: {
2626
manualChunks: {
2727
vue: ['vue'],
28-
refractor: ['refractor'],
28+
'vue-markdown-preview': ['@uivjs/vue-markdown-preview'],
29+
'hast-util': [
30+
'hast-util-has-property',
31+
'hast-util-heading-rank',
32+
'hast-util-is-element',
33+
'hast-util-to-string',
34+
'hast-util-parse-selector',
35+
'hast-util-from-parse5',
36+
'hast-util-raw',
37+
'hast-util-to-parse5',
38+
'hast-util-select',
39+
'hast-util-whitespace',
40+
'hast-util-to-html',
41+
'hastscript',
42+
'mdast-util-to-hast',
43+
],
2944
unified: [
45+
'unified',
3046
'comma-separated-tokens',
3147
'property-information',
3248
'remark-gfm',
3349
'remark-parse',
3450
'remark-rehype',
3551
'space-separated-tokens',
3652
'style-to-object',
37-
'unified',
38-
],
39-
rehype: [
53+
'refractor',
4054
'rehype-attr',
4155
'rehype-autolink-headings',
56+
'rehype-parse',
4257
'rehype-raw',
4358
'rehype-rewrite',
4459
'rehype-slug',
4560
'rehype-stringify',
61+
'remark-rehype',
4662
],
47-
'vue-markdown-preview': ['@uivjs/vue-markdown-preview'],
48-
'hast-util': ['hast-util-raw', 'hast-util-select', 'mdast-util-to-hast'],
49-
micromark: ['micromark', 'micromark-core-commonmark', 'micromark-extension-gfm-table'],
5063
'rehype-prism-plus': ['rehype-prism-plus'],
5164
'micromark-extension': [
52-
'micromark-util-subtokenize',
65+
'micromark',
5366
'micromark-util-character',
54-
'micromark-util-chunked',
55-
'micromark-util-subtokenize',
67+
'micromark-extension-gfm',
5668
'micromark-extension-gfm-autolink-literal',
5769
'micromark-extension-gfm-footnote',
70+
'micromark-core-commonmark',
71+
'micromark-factory-destination',
72+
'micromark-factory-label',
73+
'micromark-factory-title',
74+
'micromark-factory-whitespace',
75+
'micromark-factory-space',
5876
'micromark-extension-gfm-strikethrough',
77+
'micromark-extension-gfm-table',
78+
'micromark-extension-gfm-tagfilter',
5979
'micromark-extension-gfm-task-list-item',
60-
'mdast-util-gfm-autolink-literal',
61-
'mdast-util-to-markdown',
62-
'mdast-util-find-and-replace',
63-
'mdast-util-gfm-table',
64-
'mdast-util-from-markdown',
65-
'markdown-table',
66-
'github-slugger',
67-
'vfile',
80+
'micromark-util-combine-extensions',
81+
'micromark-util-types',
82+
'micromark-util-decode-numeric-character-reference',
83+
'micromark-util-decode-string',
84+
'micromark-util-normalize-identifier',
85+
'micromark-util-chunked',
86+
'micromark-util-classify-character',
87+
'micromark-util-resolve-all',
88+
'micromark-util-html-tag-name',
89+
'micromark-util-encode',
90+
'micromark-util-subtokenize',
91+
'micromark-util-sanitize-uri',
6892
],
6993
},
7094
},

0 commit comments

Comments
 (0)