Skip to content

Commit d64fa48

Browse files
chore: fix build
1 parent 6c7e41d commit d64fa48

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

src/components/MDX/Sandpack/LoadingOverlay.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,7 @@
77

88
import {useState} from 'react';
99

10-
import {
11-
LoadingOverlayState,
12-
useSandpack,
13-
OpenInStackBlitzButton,
14-
} from '@webcontainer/react';
10+
import {LoadingOverlayState, useSandpack} from '@webcontainer/react';
1511
import {useEffect} from 'react';
1612

1713
const 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" />

src/components/MDX/Sandpack/templateRSC.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
/if \(process\.env\.NODE_ENV !== "production"\) \{/,
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 = `
5050
import './styles.css';
5151
import './__react_refresh_init__';
5252
import { initClient } from './rsc-client.js';
5353
initClient();
5454
`.trim();
5555

56-
const indexHTML = `
56+
const _indexHTML = `
5757
<!DOCTYPE html>
5858
<html lang="en">
5959
<head>

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
".next/types/**/*.ts"
3838
],
3939
"exclude": [
40-
"node_modules"
40+
"node_modules",
41+
"src/components/MDX/Sandpack/sandpack-rsc/sandbox-code"
4142
]
4243
}

0 commit comments

Comments
 (0)