Skip to content

Commit ef02fa3

Browse files
chore: upgrade @webcontainer/react@0.0.6
1 parent b4a1661 commit ef02fa3

File tree

6 files changed

+6
-83
lines changed

6 files changed

+6
-83
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"@docsearch/react": "^3.8.3",
3131
"@headlessui/react": "^1.7.0",
3232
"@radix-ui/react-context-menu": "^2.1.5",
33-
"@webcontainer/react": "^0.0.4",
33+
"@webcontainer/react": "^0.0.6",
3434
"body-scroll-lock": "^3.1.3",
3535
"classnames": "^2.2.6",
3636
"debounce": "^1.2.1",

src/components/MDX/Sandpack/templates/index.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,6 @@ export const viteRscTemplate = defineTemplate({
5050
'/src/framework/entry.ssr.jsx': {
5151
code: require('!raw-loader?esModule=false!./vite-rsc/src/framework/entry.ssr.jsx') as string,
5252
},
53-
'/src/framework/error-boundary.jsx': {
54-
code: require('!raw-loader?esModule=false!./vite-rsc/src/framework/error-boundary.jsx') as string,
55-
},
5653
'/src/framework/request.jsx': {
5754
code: require('!raw-loader?esModule=false!./vite-rsc/src/framework/request.jsx') as string,
5855
},

src/components/MDX/Sandpack/templates/vite-rsc/src/framework/entry.browser.jsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import {
88
import React from 'react';
99
import {createRoot, hydrateRoot} from 'react-dom/client';
1010
import {rscStream} from 'rsc-html-stream/client';
11-
import {GlobalErrorBoundary} from './error-boundary';
1211
import {createRscRenderRequest} from './request';
1312

1413
async function main() {
@@ -61,9 +60,7 @@ async function main() {
6160

6261
const browserRoot = (
6362
<React.StrictMode>
64-
<GlobalErrorBoundary>
65-
<BrowserRoot />
66-
</GlobalErrorBoundary>
63+
<BrowserRoot />
6764
</React.StrictMode>
6865
);
6966

src/components/MDX/Sandpack/templates/vite-rsc/src/framework/error-boundary.jsx

Lines changed: 0 additions & 70 deletions
This file was deleted.

src/components/MDX/Sandpack/templates/vite-rsc/src/root.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ export function Root(props) {
66
<html lang="en">
77
<head>
88
<meta charSet="UTF-8" />
9-
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
109
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
1110
<title>Vite React RSC</title>
1211
</head>

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1995,10 +1995,10 @@
19951995
resolved "https://registry.yarnpkg.com/@webcontainer/api/-/api-1.6.1.tgz#8f4034b858279595b3b6aa2652b38af713924dfc"
19961996
integrity sha512-2RS2KiIw32BY1Icf6M1DvqSmcon9XICZCDgS29QJb2NmF12ZY2V5Ia+949hMKB3Wno+P/Y8W+sPP59PZeXSELg==
19971997

1998-
"@webcontainer/react@^0.0.4":
1999-
version "0.0.4"
2000-
resolved "https://registry.yarnpkg.com/@webcontainer/react/-/react-0.0.4.tgz#3ca74ee11865b3c69963fdd1eaf4ac3dc2162c2b"
2001-
integrity sha512-IXCJgtUUysoAOy1rWaX5gy6/3uRKKNkBxtg0rR3TbGTr9YKDrcm4C/SJc+6aJMqF3LCqG9LupSKhfD5beq9KAQ==
1998+
"@webcontainer/react@^0.0.6":
1999+
version "0.0.6"
2000+
resolved "https://registry.yarnpkg.com/@webcontainer/react/-/react-0.0.6.tgz#fa4e683270fbfc77c24d6c2a6c440a59fe692272"
2001+
integrity sha512-tcu7CeZJ6FDkaVrOGEAQJaMTjSdXEqfI23yDC/eFvlgrKslj4xYAHfJq3l1ZV1D3jyBIyo/pfj7w7MZFAj43sw==
20022002
dependencies:
20032003
"@codemirror/commands" "^6.10.3"
20042004
"@codemirror/lang-css" "^6.3.1"

0 commit comments

Comments
 (0)