mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-06 08:37:22 +00:00
Remove .mount call
This commit is contained in:
1 parent
78398bcd7d
commit
93a57b2560
3 files changed
+73
-44
No files matched your search
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user