Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Virtual Filesystem support #4061

Open
pjebs opened this issue Feb 2, 2025 · 0 comments
Open

Virtual Filesystem support #4061

pjebs opened this issue Feb 2, 2025 · 0 comments

Comments

@pjebs
Copy link

pjebs commented Feb 2, 2025

I have successfully gotten esbuild go package to work.

My plan now is to create a Go-WASM package for the browser that can do all the npm package downloading/resolving and then bundling using esbuild --- All in memory.

Will esbuild support using the io/FS interface so that I can implement a "in-memory" filesystem?

https://pkg.go.dev/io/fs#FS
https://pkg.go.dev/io/fs#ReadFileFS
https://pkg.go.dev/io/fs#StatFS
https://pkg.go.dev/golang.org/x/tools/godoc/vfs

https://github.com/blang/vfs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant