Skip to content

Commit 77a476f

Browse files
committed
quit Prism lazy
1 parent 5916b38 commit 77a476f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/components/Cell.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React from "react";
22
import Ansi from "ansi-to-react";
3+
import { Prism } from "react-syntax-highlighter";
34

45
import * as PrismStyles from "react-syntax-highlighter/dist/cjs/styles/prism";
56

@@ -13,11 +14,6 @@ type CellProps = {
1314
seq: number;
1415
};
1516

16-
const Prism = React.lazy(() => {
17-
const mod = import("react-syntax-highlighter");
18-
return mod.then((m) => ({ default: m.Prism }));
19-
});
20-
2117
export const Cell: React.FC<CellProps> = ({ cell, seq }) => {
2218
const {
2319
syntaxTheme,

0 commit comments

Comments
 (0)