Remove .mount call

This commit is contained in:
Alex Gleason committed 2025-07-20 16:24:20 -05:00
1 parent 78398bcd7d
commit 93a57b2560
3 files changed
+73 -44

No files matched your search

+1 -10
View File
@@ -1,4 +1,4 @@
import { WebContainer, type WebContainerProcess, type FileSystemTree } from '@webcontainer/api';
import { WebContainer, type WebContainerProcess } from '@webcontainer/api';
import type { JSRuntime, JSRuntimeFS, DirectoryEntry } from './JSRuntime';
/**
@@ -44,15 +44,6 @@ export class WebContainerAdapter implements JSRuntime {
const webcontainer = await this.ensureBooted();
return webcontainer.spawn(command, args, options);
}
/**
* Mount a file tree in the WebContainer
* This is a convenience method for setting up the container
*/
async mount(tree: FileSystemTree): Promise<void> {
const webcontainer = await this.ensureBooted();
return webcontainer.mount(tree);
}
}
/**