Skip to content

Commit f445b1b

Browse files
committed
Fix some sandboxes
1 parent 33f86d5 commit f445b1b

File tree

2 files changed

+5
-2
lines changed
  • packages/app/src/sandbox/eval/transpilers/babel/worker
  • standalone-packages/vscode-extensions/out/extensions/python/out

2 files changed

+5
-2
lines changed

packages/app/src/sandbox/eval/transpilers/babel/worker/babel-worker.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,10 @@ async function compile(code, customConfig, path, isV7) {
337337
transpiledCode: result.code,
338338
});
339339
} catch (e) {
340-
if (e.code === 'EIO') {
340+
if (
341+
!fsInitialized &&
342+
(e.message.indexOf('Cannot find module') > -1 || e.code === 'EIO')
343+
) {
341344
// BrowserFS was needed but wasn't initialized
342345
await waitForFs();
343346

standalone-packages/vscode-extensions/out/extensions/python/out/pythonMain.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)