Skip to content

Commit 37b8f4a

Browse files
committed
feat(PrismCode): react renderer * 2
1 parent 2fb2120 commit 37b8f4a

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

src/components/content/PrismCode/PrismCode.tsx

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff 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

2824
const PreElement = tasty({
2925
as: 'pre',

0 commit comments

Comments
 (0)