Skip to content

Commit 3ab1245

Browse files
danilowozgaearon
andauthored
[beta] Sandpack - new bundler (reactjs#4458)
* add new bundle for testing * add timer * update url * update bundler version * Remove temporary code * Fix lint * why? * testing bundler url * uncaught exception handling * catch global errors on new bundler * Try latest bundler Co-authored-by: Dan Abramov <[email protected]>
1 parent dbeeac8 commit 3ab1245

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
12.16.1
1+
12.22.0

beta/src/components/MDX/Sandpack/SandpackRoot.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
import * as React from 'react';
66
import {SandpackProvider} from '@codesandbox/sandpack-react';
7+
import {SandpackLogLevel} from '@codesandbox/sandpack-client';
78
import {CustomPreset} from './CustomPreset';
89
import {createFileMap} from './utils';
910

@@ -82,7 +83,9 @@ function SandpackRoot(props: SandpackProps) {
8283
customSetup={{...setup, files: files}}
8384
autorun={autorun}
8485
initMode="user-visible"
85-
initModeObserverOptions={{rootMargin: '1400px 0px'}}>
86+
initModeObserverOptions={{rootMargin: '1400px 0px'}}
87+
bundlerURL="https://22530bfe.sandpack-bundler.pages.dev"
88+
logLevel={SandpackLogLevel.None}>
8689
<CustomPreset
8790
isSingleFile={isSingleFile}
8891
showDevTools={showDevTools}

0 commit comments

Comments
 (0)