diff --git a/beta/src/components/MDX/Sandpack/index.tsx b/beta/src/components/MDX/Sandpack/index.tsx index ad3a2eba..845510ea 100644 --- a/beta/src/components/MDX/Sandpack/index.tsx +++ b/beta/src/components/MDX/Sandpack/index.tsx @@ -3,10 +3,9 @@ */ import * as React from 'react'; -import dynamic from 'next/dynamic'; import {createFileMap} from './createFileMap'; -const SandpackRoot = dynamic(() => import('./SandpackRoot'), {suspense: true}); +const SandpackRoot = React.lazy(() => import('./SandpackRoot')); const SandpackGlimmer = ({code}: {code: string}) => (