Skip to content

Commit 081d100

Browse files
authored
fix(sandpack): clear up bundler timeout when there's a syntax error (#6659)
* fix: Update @codesandbox/sandpack-react version to 2.13.1 * fix: Updated the bundlerURL to use a new URL
1 parent a853e69 commit 081d100

File tree

3 files changed

+24
-30
lines changed

3 files changed

+24
-30
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"check-all": "npm-run-all prettier lint:fix tsc"
2323
},
2424
"dependencies": {
25-
"@codesandbox/sandpack-react": "2.6.0",
25+
"@codesandbox/sandpack-react": "2.13.1",
2626
"@docsearch/css": "3.0.0-alpha.41",
2727
"@docsearch/react": "3.0.0-alpha.41",
2828
"@headlessui/react": "^1.7.0",

src/components/MDX/Sandpack/SandpackRoot.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ function SandpackRoot(props: SandpackProps) {
8888
autorun,
8989
initMode: 'user-visible',
9090
initModeObserverOptions: {rootMargin: '1400px 0px'},
91-
bundlerURL: 'https://1e4ad8f7.sandpack-bundler-4bw.pages.dev',
91+
bundlerURL: 'https://786946de.sandpack-bundler-4bw.pages.dev',
9292
logLevel: SandpackLogLevel.None,
9393
}}>
9494
<CustomPreset providedFiles={Object.keys(files)} />

yarn.lock

+22-28
Original file line numberDiff line numberDiff line change
@@ -611,29 +611,29 @@
611611
style-mod "^4.0.0"
612612
w3c-keyname "^2.2.4"
613613

614-
"@codesandbox/[email protected].4":
615-
version "0.1.4"
616-
resolved "https://registry.yarnpkg.com/@codesandbox/nodebox/-/nodebox-0.1.4.tgz#1c9ed4caf6cda764500aec3d46b245e2e9b88ccc"
617-
integrity sha512-+MR7JibjGjTRDmyQbL8Mliej6wakQP7q99+wGL/nOzd0Q3s+YWGQfv0QpYKbdMClKUTFJGvwzwOeqHVTkpWNCQ==
614+
"@codesandbox/[email protected].8":
615+
version "0.1.8"
616+
resolved "https://registry.yarnpkg.com/@codesandbox/nodebox/-/nodebox-0.1.8.tgz#2dc701005cedefac386f17a69a4c9a4f38c2325d"
617+
integrity sha512-2VRS6JDSk+M+pg56GA6CryyUSGPjBEe8Pnae0QL3jJF1mJZJVMDKr93gJRtBbLkfZN6LD/DwMtf+2L0bpWrjqg==
618618
dependencies:
619-
outvariant "^1.3.0"
619+
outvariant "^1.4.0"
620620
strict-event-emitter "^0.4.3"
621621

622-
"@codesandbox/sandpack-client@^2.6.0":
623-
version "2.6.0"
624-
resolved "https://registry.yarnpkg.com/@codesandbox/sandpack-client/-/sandpack-client-2.6.0.tgz#a266ac49843a0c3263ac065daaba473cb9565193"
625-
integrity sha512-JFCe+MU+5E+nXazrNK1uS/zLV5l4UNkYQx7AjF9sJ5ZmUlshz1HRDiK/Tdp6W+3ahcSERF3dcYPCf46LJF8Yvw==
622+
"@codesandbox/sandpack-client@^2.13.0":
623+
version "2.13.0"
624+
resolved "https://registry.yarnpkg.com/@codesandbox/sandpack-client/-/sandpack-client-2.13.0.tgz#c4e12628a3aceb4a2c99c501bea691b4276eab27"
625+
integrity sha512-1rOLj9wkbBd3RV6/zRq+IV52egy22RQMKDTtdR+lQzy87uj0tlbYjAwtUZSjkioHlj6U8Y82uWLf71nvFIxE0g==
626626
dependencies:
627-
"@codesandbox/nodebox" "0.1.4"
627+
"@codesandbox/nodebox" "0.1.8"
628628
buffer "^6.0.3"
629629
dequal "^2.0.2"
630-
outvariant "1.3.0"
630+
outvariant "1.4.0"
631631
static-browser-server "1.0.3"
632632

633-
"@codesandbox/sandpack-react@2.6.0":
634-
version "2.6.0"
635-
resolved "https://registry.yarnpkg.com/@codesandbox/sandpack-react/-/sandpack-react-2.6.0.tgz#2c2d98b50c9db462a32831071de7e5e710d000c2"
636-
integrity sha512-zSeJXzaVt96aIFfkyr+bMKBjV2k3hVcX+j1+aBRIOCpHhTrbszPesUmcE3yNTzGqqQfX/JnIJNRmeqFKmSLjTQ==
633+
"@codesandbox/sandpack-react@2.13.1":
634+
version "2.13.1"
635+
resolved "https://registry.yarnpkg.com/@codesandbox/sandpack-react/-/sandpack-react-2.13.1.tgz#ba69a227d0c5157bb48685a02fefc0baa83bdc09"
636+
integrity sha512-R8oGO4QHHWTyA7r6NWHtBakizgX+rl/Rc6cbQunXGNm4vV/lqqU4NS+MVp2rXA+c8DifOLi1wA2wUZUN//Z9bw==
637637
dependencies:
638638
"@codemirror/autocomplete" "^6.4.0"
639639
"@codemirror/commands" "^6.1.3"
@@ -643,13 +643,12 @@
643643
"@codemirror/language" "^6.3.2"
644644
"@codemirror/state" "^6.2.0"
645645
"@codemirror/view" "^6.7.1"
646-
"@codesandbox/sandpack-client" "^2.6.0"
646+
"@codesandbox/sandpack-client" "^2.13.0"
647647
"@lezer/highlight" "^1.1.3"
648648
"@react-hook/intersection-observer" "^3.1.1"
649649
"@stitches/core" "^1.2.6"
650650
anser "^2.1.1"
651651
clean-set "^1.1.2"
652-
codesandbox-import-util-types "^2.2.3"
653652
dequal "^2.0.2"
654653
escape-carriage "^1.3.1"
655654
lz-string "^1.4.4"
@@ -1769,11 +1768,6 @@ [email protected]:
17691768
resolved "https://registry.yarnpkg.com/client-only/-/client-only-0.0.1.tgz#38bba5d403c41ab150bff64a95c85013cf73bca1"
17701769
integrity sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==
17711770

1772-
codesandbox-import-util-types@^2.2.3:
1773-
version "2.2.3"
1774-
resolved "https://registry.yarnpkg.com/codesandbox-import-util-types/-/codesandbox-import-util-types-2.2.3.tgz#b354b2f732ad130e119ebd9ead3bda3be5981a54"
1775-
integrity sha512-Qj00p60oNExthP2oR3vvXmUGjukij+rxJGuiaKM6tyUmSyimdZsqHI/TUvFFClAffk9s7hxGnQgWQ8KCce27qQ==
1776-
17771771
collapse-white-space@^1.0.2:
17781772
version "1.0.6"
17791773
resolved "https://registry.yarnpkg.com/collapse-white-space/-/collapse-white-space-1.0.6.tgz#e63629c0016665792060dbbeb79c42239d2c5287"
@@ -4635,16 +4629,16 @@ os-tmpdir@~1.0.2:
46354629
resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274"
46364630
integrity sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=
46374631

4638-
4639-
version "1.3.0"
4640-
resolved "https://registry.yarnpkg.com/outvariant/-/outvariant-1.3.0.tgz#c39723b1d2cba729c930b74bf962317a81b9b1c9"
4641-
integrity sha512-yeWM9k6UPfG/nzxdaPlJkB2p08hCg4xP6Lx99F+vP8YF7xyZVfTmJjrrNalkmzudD4WFvNLVudQikqUmF8zhVQ==
4642-
4643-
outvariant@^1.3.0:
4632+
[email protected], outvariant@^1.3.0:
46444633
version "1.4.0"
46454634
resolved "https://registry.yarnpkg.com/outvariant/-/outvariant-1.4.0.tgz#e742e4bda77692da3eca698ef5bfac62d9fba06e"
46464635
integrity sha512-AlWY719RF02ujitly7Kk/0QlV+pXGFDHrHf9O2OKqyqgBieaPOIeuSkL8sRK6j2WK+/ZAURq2kZsY0d8JapUiw==
46474636

4637+
outvariant@^1.4.0:
4638+
version "1.4.2"
4639+
resolved "https://registry.yarnpkg.com/outvariant/-/outvariant-1.4.2.tgz#f54f19240eeb7f15b28263d5147405752d8e2066"
4640+
integrity sha512-Ou3dJ6bA/UJ5GVHxah4LnqDwZRwAmWxrG3wtrHrbGnP4RnLCtA64A4F+ae7Y8ww660JaddSoArUR5HjipWSHAQ==
4641+
46484642
p-limit@^1.1.0:
46494643
version "1.3.0"
46504644
resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-1.3.0.tgz#b86bd5f0c25690911c7590fcbfc2010d54b3ccb8"

0 commit comments

Comments
 (0)