mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-22 03:42:14 +00:00
[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:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user