File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed
src/components/content/PrismCode Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -14,16 +14,12 @@ import {
1414// any additional grammars so that those grammars augment this exact object.
1515( globalThis as any ) . Prism = RendererPrism ;
1616
17- // Vite will pre-bundle these. The `@vite-ignore` keeps it from trying to
18- // statically analyze the variable `path`.
19- await Promise . all ( [
20- import ( 'prismjs/components/prism-diff' ) ,
21- import ( 'prismjs/components/prism-sql' ) ,
22- import ( 'prismjs/plugins/diff-highlight/prism-diff-highlight' ) ,
23- // already bundled in most cases, but kept for completeness
24- import ( 'prismjs/components/prism-javascript' ) ,
25- import ( 'prismjs/components/prism-yaml' ) ,
26- ] ) ;
17+ import ( 'prismjs/components/prism-diff' ) ;
18+ import ( 'prismjs/components/prism-sql' ) ;
19+ import ( 'prismjs/plugins/diff-highlight/prism-diff-highlight' ) ;
20+ // already bundled in most cases, but kept for completeness
21+ import ( 'prismjs/components/prism-javascript' ) ;
22+ import ( 'prismjs/components/prism-yaml' ) ;
2723
2824const PreElement = tasty ( {
2925 as : 'pre' ,
You can’t perform that action at this time.
0 commit comments