We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32c8885 commit 4c3f45aCopy full SHA for 4c3f45a
src/lib/client/adapters/webcontainer/index.js
@@ -29,13 +29,15 @@ export async function create(stubs) {
29
reject(new Error('Timed out starting WebContainer'));
30
}, 15000);
31
32
- console.log('loading webcontainer');
+ if (!vm) {
33
+ console.log('loading webcontainer');
34
- const WebContainer = await load();
35
+ const WebContainer = await load();
36
- console.log('booting webcontainer');
37
+ console.log('booting webcontainer');
38
- vm = await WebContainer.boot();
39
+ vm = await WebContainer.boot();
40
+ }
41
42
const error_unsub = vm.on('error', (error) => {
43
error_unsub();
0 commit comments