[beta] Sandpack - new bundler (#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 <dan.abramov@gmail.com>
This commit is contained in:
Danilo Woznica
2022-05-18 22:34:28 +01:00
committed by GitHub
parent dbeeac8ab6
commit 3ab1245314
2 changed files with 5 additions and 2 deletions

2
.nvmrc
View File

@@ -1 +1 @@
12.16.1
12.22.0

View File

@@ -4,6 +4,7 @@
import * as React from 'react';
import {SandpackProvider} from '@codesandbox/sandpack-react';
import {SandpackLogLevel} from '@codesandbox/sandpack-client';
import {CustomPreset} from './CustomPreset';
import {createFileMap} from './utils';
@@ -82,7 +83,9 @@ function SandpackRoot(props: SandpackProps) {
customSetup={{...setup, files: files}}
autorun={autorun}
initMode="user-visible"
initModeObserverOptions={{rootMargin: '1400px 0px'}}>
initModeObserverOptions={{rootMargin: '1400px 0px'}}
bundlerURL="https://22530bfe.sandpack-bundler.pages.dev"
logLevel={SandpackLogLevel.None}>
<CustomPreset
isSingleFile={isSingleFile}
showDevTools={showDevTools}