Skip to content

Commit 7652251

Browse files
committed
docs(web-host): document local fork of @bytecodealliance/preview2-shim
1 parent 76d16d1 commit 7652251

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Plugins are sandboxed by default - they cannot access the filesystem or network
3737
Plugins like `ls` or `cat` can interact with the filesystem using the primitives of the languages they are written in.
3838

3939
- on the CLI, a folder from the disk is mounted via the `--dir` flag
40-
- on the browser, a virtual filesystem is mounted, the I/O operations are forwarded via the `@bytecodealliance/preview2-shim/filesystem` shim, which shims the `wasi:filesystem` filesystem interface
40+
- on the browser, a virtual filesystem is mounted, the I/O operations are forwarded via a [local fork](./packages/web-host/overrides/@bytecodealliance/preview2-shim) of `@bytecodealliance/preview2-shim/filesystem` shim, which shims the `wasi:filesystem` filesystem interface
4141

4242
<p align="center"><a href="https://topheman.github.io/webassembly-component-model-experiments/"><img src="./packages/web-host/public/wasi.png" alt="Demo" /></a></p>
4343
<p align="center">
@@ -410,6 +410,13 @@ pluginlab\
410410
- formating the rust code
411411
- typechecking the TypeScript code
412412

413+
### Local fork of `@bytecodealliance/preview2-shim`
414+
415+
- The original [`@bytecodealliance/preview2-shim`](https://github.com/bytecodealliance/jco/tree/main/packages/preview2-shim) for the **browser** doesn't support **WRITE** operations on the filesystem
416+
- A fork was created in [`packages/web-host/overrides/@bytecodealliance/preview2-shim`](./packages/web-host/overrides/@bytecodealliance/preview2-shim) to fix this issue
417+
418+
Everything is described in [PR#15 Support plugin-tee in the web host](https://github.com/topheman/webassembly-component-model-experiments/pull/15) (must read 😉).
419+
413420
## Resources
414421

415422
### Optional tools

0 commit comments

Comments
 (0)