Skip to content

Commit

Permalink
[beta] Sandpack - new bundler (#4458)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
danilowoz and gaearon authored May 18, 2022
1 parent dbeeac8 commit 3ab1245
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
12.16.1
12.22.0
5 changes: 4 additions & 1 deletion beta/src/components/MDX/Sandpack/SandpackRoot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down Expand Up @@ -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}
Expand Down

0 comments on commit 3ab1245

Please sign in to comment.