We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5916b38 commit 77a476fCopy full SHA for 77a476f
src/components/Cell.tsx
@@ -1,5 +1,6 @@
1
import React from "react";
2
import Ansi from "ansi-to-react";
3
+import { Prism } from "react-syntax-highlighter";
4
5
import * as PrismStyles from "react-syntax-highlighter/dist/cjs/styles/prism";
6
@@ -13,11 +14,6 @@ type CellProps = {
13
14
seq: number;
15
};
16
-const Prism = React.lazy(() => {
17
- const mod = import("react-syntax-highlighter");
18
- return mod.then((m) => ({ default: m.Prism }));
19
-});
20
-
21
export const Cell: React.FC<CellProps> = ({ cell, seq }) => {
22
const {
23
syntaxTheme,
0 commit comments