File tree Expand file tree Collapse file tree 6 files changed +6
-83
lines changed
src/components/MDX/Sandpack/templates Expand file tree Collapse file tree 6 files changed +6
-83
lines changed Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff 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 } ,
Original file line number Diff line number Diff line change 88import React from 'react' ;
99import { createRoot , hydrateRoot } from 'react-dom/client' ;
1010import { rscStream } from 'rsc-html-stream/client' ;
11- import { GlobalErrorBoundary } from './error-boundary' ;
1211import { createRscRenderRequest } from './request' ;
1312
1413async 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
Load Diff This file was deleted.
Original file line number Diff line number Diff 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 >
Original file line number Diff line number Diff line change 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"
You can’t perform that action at this time.
0 commit comments