File tree Expand file tree Collapse file tree 3 files changed +6
-10
lines changed
src/components/MDX/Sandpack Expand file tree Collapse file tree 3 files changed +6
-10
lines changed Original file line number Diff line number Diff line change 77
88import { useState } from 'react' ;
99
10- import {
11- LoadingOverlayState ,
12- useSandpack ,
13- OpenInStackBlitzButton ,
14- } from '@webcontainer/react' ;
10+ import { LoadingOverlayState , useSandpack } from '@webcontainer/react' ;
1511import { useEffect } from 'react' ;
1612
1713const FADE_ANIMATION_DURATION = 200 ;
@@ -61,7 +57,6 @@ export const LoadingOverlay = ({
6157 transition : `opacity ${ FADE_ANIMATION_DURATION } ms ease-out` ,
6258 } } >
6359 < div className = "sp-cube-wrapper" title = "Open in StackBlitz" >
64- { /* <OpenInStackBlitzButton /> */ }
6560 < div className = "sp-cube" >
6661 < div className = "sp-sides" >
6762 < div className = "top" />
Original file line number Diff line number Diff line change @@ -38,22 +38,22 @@ const reactRefreshRaw =
3838// Wrap as a CJS module that Sandpack can require.
3939// Strip the `if (process.env.NODE_ENV !== "production")` guard so the
4040// runtime always executes inside the sandbox.
41- const reactRefreshModule = reactRefreshRaw . replace (
41+ const _reactRefreshModule = reactRefreshRaw . replace (
4242 / i f \( p r o c e s s \. e n v \. N O D E _ E N V ! = = " p r o d u c t i o n " \) \{ / ,
4343 '{'
4444) ;
4545
4646// Entry point that bootstraps the RSC client pipeline.
4747// __react_refresh_init__ must be imported BEFORE rsc-client so the
4848// DevTools hook stub exists before React's renderer loads.
49- const indexEntry = `
49+ const _indexEntry = `
5050import './styles.css';
5151import './__react_refresh_init__';
5252import { initClient } from './rsc-client.js';
5353initClient();
5454` . trim ( ) ;
5555
56- const indexHTML = `
56+ const _indexHTML = `
5757<!DOCTYPE html>
5858 <html lang="en">
5959 <head>
Original file line number Diff line number Diff line change 3737 " .next/types/**/*.ts"
3838 ],
3939 "exclude" : [
40- " node_modules"
40+ " node_modules" ,
41+ " src/components/MDX/Sandpack/sandpack-rsc/sandbox-code"
4142 ]
4243}
You can’t perform that action at this time.
0 commit comments